2

Sign In With Apple [SUBSCRIBER]

 收集于1周前 阅读数 2
以下为 快照 页面,建议前往来源网站查看,会有更好的阅读体验。
原文链接: https://www.raywenderlich.com/7150700-sign-in-with-apple

Sign In With Apple

Jan 14 2020 · Video Course (26 mins) · Intermediate

SwiftUI allows developers to provide their users with a secure and private method of logging into their app using their existing Apple ID instead of making a new username or having to use a social media login. Learn the concepts behind Sign In with Apple and how to integrate it into your app.

Get Started

Version

  • Swift 5.1, macOS 10.15, Xcode 11.2

Other Core APIs iOS & Swift Tutorials

02f1c20d-d1f2-4a08-840b-4a2906a5b57a.png4cf70670-2a5c-462e-8b4b-f6c8f87283a8.png

Prepare Your Project

Sign In With Apple requires you to enable a capability in Xcode, and this episode shows you how to do that.

Sign In With Apple is based off UIView, and this episode will show you how to present it when using SwiftUI

Learn how to handle tap events for your Sign In With Apple button, and what Sign In With Apple does behind the scenes.

Handle Different Registration Types

Learn how the delegate methods you'll implement handle the various cases when logging a user into your app.

Learn how Sign In With Apple handles a new user registration for your app.

Learn how you should handle signing in users who already have existing accounts for your app.

Some users may already have credentials for your app in their iCloud Keychain. Learn how to handle that in your app.

With the delegates and registration types defined, learn how to update the Sign In With Apple button to use them.

Deal With Different Runtime Cases

If iOS contains the proper Apple ID and credentials for your app, learn how to automatically display the Sign In With Apple dialog.

Users can disable Sign In With Apple for your app. Learn how to check to see whether they are still signed in.

Who is this for?

This course is for iOS developers who want experience in integrating Sign in With Apple as a possible login mechanism in their iOS app. It expects you to be familar with Xcode and iOS programming (including how to program in Swift). Having an existing app with some sort of login capability is helpful, but not required to follow along.

Covered concepts

  • Sign in with Apple
  • SwiftUI (including the SwiftUI Environment)
  • Delegates and Protocols

Contributors

Josh Steele

In my day job, I write apps (Java, iOS) for space and health at APL. I also teach at the JHU Whiting School Engineer for...

Instructor

Adriana Kutenko

Graphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...

Illustrator


猜你喜欢

关于极客头条


聚合每日国内外有价值,有趣的链接。