Libraries and SDKs
IOS
Our iOS library is built natively with Swift and SwiftUI, powered by the mycover.ai platform, for buying and managing insurance policies.
1. Installation
We currently support Swift Package Manager only.
Option A: Package.swift
Add the SDK to your Package.swift file:
dependencies: [
.package(url: "https://github.com/ibuild1genius/mca-ios-sdk", .upToNextMajor(from: "1.0.0"))
]
Option B: Xcode UI
- Go to File > Add Packages
- Enter the URL: https://github.com/ibuild1genius/mca-ios-sdk
- Choose version 1.0.0 or later
Usage
1. Import the SDK
import MyCoverSDK
2. Use the SwiftUI View
MyCoverSDK(apiKey: "MCAPUBK_ENV|your_public_key")