FootprintSwift

master

onefootprint/footprint-swift

FootprintSwift

Requirements

  • iOS 13.0 or later
  • Swift 5.0 or later

Installation

Swift Package Manager

You can use The Swift Package Manager to install FootprintSwift by adding it to your project's Package.swift file:

import PackageDescription

let package = Package(
    name: "YourProject",
    dependencies: [
        .package(url: "https://github.com/onefootprint/footprint-swift", from: "0.0.1")
    ],
    targets: [
        .target(
            name: "YourTarget",
            dependencies: ["FootprintSwift"])
    ]
)

Usage

To use FootprintSwift, you first need to import it and then configure it as shown in the examples below.

import FootprintSwift

let config = FootprintConfiguration(
    publicKey: "yourPublicKey",
    scheme: "yourScheme",
    onCancel: {
        // Handle dismiss
    },
    onComplete: { validationToken in
        // Handle completion with validation token
    }
)
Footprint.initialize(with: config)

License

FootprintSwift is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Apr 12 2024 12:53:31 GMT-0900 (Hawaii-Aleutian Daylight Time)