Adding ZenKey Button to iOS

Create an instance of ZenKeyAuthorizeButton and add it to your UI. Set a delegate to handle authorization.

import ZenKeySDK  
class LoginViewController {  
  let zenKeyButton = ZenKeyAuthorizeButton()  
    override func viewDidLoad() {  
         super.viewDidLoad()  
          zenKeyButton.delegate = self  
     view.addSubview(zenKeyButton)  
    }  
}

📘

Additional Button Options

To learn more about button variations, view adding buttons in the full iOS integration guide.


Did this page help you?