Member-only story
Implementing Sign in with Apple Using Django (Part 3)
Putting it all together and adding the functionality to your app
This is the third and the last part of the series “Implementing Sign in with Apple Using Django: A Recipe,” which has been written to share a clear path for developers to implement the Sign in with Apple feature in their iOS apps with Django in the back end.
Please refer to this link to read the first part of the series and to this link to read the second part.
3. Implementing Sign in with Apple in Your iOS App
Now, the only step remaining to be done is in the iOS app itself. In Part 1 of this series, we added Sign in with Apple to our app’s capabilities. If you haven’t done that already, please make sure you’ve completed it before starting this step. And please note you’ll need Xcode 11 or above to implement this feature and iOS 13 or later to see this feature in action.
Now, let’s assume we have a view controller named ViewController
in our iOS application. Firstly, we’ll import the AuthenticationServices
framework into our view controller by writing:
import AuthenticationServices
After that, we’re ready to leverage all the features provided by the…