PCAiOSLib 1.1.2

PCAiOSLib 1.1.2

TestsTested
LangLanguage SwiftSwift
License BSD-3-Clause
ReleasedLast Release Jan 2019
SPMSupports SPM

Maintained by Henrik Valve, Henry Thomas.



 
Depends on:
Alamofire~> 4.8.1
AlamofireObjectMapper~> 5.2.0
 

PCAiOSLib 1.1.2

  • By
  • PCA Predict

PCAiOSLib

Introduction

The PCAiOSLib Cocoapod is an easy way to use the PCA Predict or Addressy type-ahead search technology within an iOS application.

Quick Start

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.

Example

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.