IOS Integration

The plugin is packaged as XCFramework , please download the below file and unzip it.

The SparkYouWebView class constructor receive these parameters

  • Param url: The SparkYou web url

  • Param delegate : The SparkYouWebViewDelegate delegate

  • Param showProgressBar: To enable/disable the top progress bar while the web view is loading

public class SparkYouWebView : UIView
{
    public init(url: String, delegate: SparkYouWebViewDelegate, showProgressBar: Bool?) {
        ...
    }
}

Below is the SparkYouWebViewDelegate protocol

public protocol SparkYouWebViewDelegate: AnyObject {
    func sparkYouWebViewClosed() -> Void
    func sparkYouWebViewGetAccessToken() -> String
}

Last updated