Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no data #100

Closed
rgmyyw opened this issue Feb 16, 2023 · 0 comments
Closed

no data #100

rgmyyw opened this issue Feb 16, 2023 · 0 comments

Comments

@rgmyyw
Copy link

rgmyyw commented Feb 16, 2023

class ViewController: UIViewController {
    private lazy var addressAutofill = AddressAutofill()

    override func viewDidLoad() {
        super.viewDidLoad()
        addressAutofill.suggestions(for: .init(value: "Los Angeles, USA")!) { [weak self] result in
            guard let self = self else { return }
            
            switch result {
            case .success(let suggestions):
                print(suggestions)
                
            case .failure(let error):
                print(error)
            }
        }
        
    }


}

截屏2023-02-16 下午6 05 26

@rgmyyw rgmyyw closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant