Sign In with Apple in SwiftUI

ML Musings
The Startup
Published in
4 min readMay 14, 2020

--

Photo by Laurenz Heymann on Unsplash

Let’s recreate “Sign in with Apple” Button for our app in SwiftUI. Before that, let us get some terms out of the way

SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools and APIs.” — Apple’s official documentation

The best part is you can integrate your views with components from the UIKit, AppKit, and WatchKit frameworks. In short, SwiftUI has made building user interfaces straightforward.

“Sign In with Apple is the fast, easy, and more private way to sign into apps and websites using the Apple ID that you already have.” — Apple’s official documentation

Why Sign In with Apple is Important?

  1. Apple would soon make every developer use Sign in with Apple mandatory. In sum, you don’t have another option.
  2. Sign in with Apple is built from the ground up to respect user’s privacy and keep them in control of their personal information.
  3. Instead of using a social media account, or filling out forms and choosing another new password, just tap the Sign in with Apple button, review your information, and sign in quickly and securely with Face ID, Touch ID, or the device passcode.

--

--

ML Musings
The Startup

✨ I enjoy pushing the boundaries of JS, Python, SwiftUI and AI. You can support my work through coffee - www.buymeacoffee.com/MLMusings