Skip to content

logto-io/swift

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Logto helps you build the sign-in experience and user identity within minutes.

Logto Swift SDKs

The monorepo for SDKs and social plugins written in Swift. Check out our integration guide or SDK reference for more information.

We also provide 集成指南 and SDK 参考 in Simplified Chinese.

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 connector with native tag.

Resources

Website Logto Docs Discord