Prerequisites: minimum supported iOS version is 11.0.
In Xcode, select File > Swift Packages > Add Package Dependency and enter https://github.com/getkevin/kevin-ios
as the repository URL.
Select the most recent version of the SDK.
Add the kevin.
product to the target of your application
Add this line to your Cartfile
:
github "getkevin/kevin-ios"
In your Podfile add kevin. dependency:
target 'MyApp' do
pod 'kevin-ios', '~> <latest-version>'
end
Latest SDK version can be found here.
import SwiftUI
import Kevin
@main
struct KevinDemoApp: App {
init() {
// setup your custom theme which extends KevinTheme
Kevin.shared.theme = KevinTheme()
// set optional locale, default is English locale
Kevin.shared.locale = Locale(identifier: "en")
// initialize required plugins with your callback urls
KevinAccountsPlugin.shared.configure(
KevinAccountsConfiguration.Builder(
callbackUrl: URL(string: "https://your.callback.url")!
).build()
)
KevinInAppPaymentsPlugin.shared.configure(
KevinInAppPaymentsConfiguration.Builder(
callbackUrl: URL(string: "https://your.callback.url")!
).build()
)
}
}