The PCAiOSLib Cocoapod is an easy way to use the PCA Predict or Addressy type-ahead search technology within an iOS application.
A View Controller of type PCALookupViewController can be initilized with a license key, and then presented to the user. This will display a form with the type-ahread seach technology:
@IBAction func lookupAddressPressed(_ sender: Any) {
let viewController = PCALookupViewController(licenseKey: "0000-0000-0000-0000");
viewController.addressDelegate = self;
self.present(viewController, animated: true, completion: nil);
}
On close of this form, func didRecieveAddress can be used, to retrieve the address response of type RetrieveResponseItem.
A working example of how to implement this Cocoapod is available here. Please note you will need to register with either PCA Predict or Addressy for a license key.