Skip to content

A small demo application that showcases Lean's LinkSDK methods - and practical application of the methods in SwiftUI.

License

Notifications You must be signed in to change notification settings

leantechnologies/link-ios-demo-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lean iOS Demo Application

This starter application allows you to see and test all of the methods available in the LinkSDK's Swift Package.

Getting Started

Open LeanDemo.xcodeproj in xCode and build the application.

Enter your App Token in the field provided and press the return key - alternatively you can set the appToken parameter in the LeanDemoApp.swift file.

//
//  LeanDemoApp.swift
//  LeanDemo
//
//  Created by Alex Tomlinson on 15/04/2021.
//

import SwiftUI
import LeanSDK

@main
class LeanDemoApp: App {
    required init() {
        Lean.manager.setup(appToken: "YOUR_APP_TOKEN", sandbox: true, version: "latest")
    }
    
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

You may also need to update the Team settings to successfully build the project. To do this click on LeanDemo in the Project Navigator, go to Signing & Capabilities along the top navigation and update the necessary details.

Troubleshooting

Lean is not available, or the package is not present

If the LeanSDK function cannot be found - go to File > Swift Packages > Update to Latest Package Versions. You can also relink the Swift Package by adding https://github.com/leantechnologies/link-sdk-ios-distribution as a dependency.

About

A small demo application that showcases Lean's LinkSDK methods - and practical application of the methods in SwiftUI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages