You can integrate singularity sdk to easy implement login flow and wallet integration
Add below line in your podflie
pod "Singularity-iOS"
you can add on SPM using below link
Implement this protocol to get callbacks
func onGetSingularityUserInfo(user: [String:Any]) {
}
To get user detail from UserDefaults
let prefs = UserDefaults.standard
let user = prefs.object(forKey: "SingularityUser")
func onSingularityClose() {
}
func onSingularityLogout() {
}
func onSingularityError(message: String, code: Int) {
}
You can call this function to start login flow or can open profile page
SingularitySDKInitializer.startLogin(on parentVC: <UIViewController>,
with params: <SingularityParams>,
listener: <SingularityListener>)
link |
Stars: 0 |
Last commit: 44 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics