Skip to content

logto-io/swift

Repository files navigation

Logto Swift SDKs

The monorepo for Logto SDKs and social plugins written in Swift. heck out our docs for more information.

Installation

Swift Package Manager

Since Xcode 11, you can directly import a swift package w/o any additional tool. Use the following URL to add Logto SDKs as a dependency:

https://github.com/logto-io/swift.git

Carthage

Carthage needs a xcodeproj file to build, but swift package generate-xcodeproj will report a failure since we are using binary targets for native social plugins. We will try to find a workaround later.

CocoaPods

CocoaPods does not support local dependency and monorepo, thus it's hard to create a .podspec for this repo.

Products

Name Description
Logto Logto swift core.
LogtoClient Logto swift client.
LogtoSocialPlugin Social plugin foundation for LogtoClient.
LogtoSocialPluginWeb Social plugin for OAuth-like web IdPs.
LogtoSocialPluginAlipay Social plugin for Alipay sign in.
LogtoSocialPluginWechat Social plugin for WeChat sign in.

In most cases, you only need to import LogtoClient, which includes Logto and LogtoSocialPluginWeb under the hood.

The related plugin is required when you integrate a native connector.

Resources

Website Logto Docs Discord