This sample code help us to enable social login in few seconds with all major SDK like
Apple
It is also flexiable to add and remove any social login SDK without changing much code in UI.
To configure these SDK follow the steps provided by SDK docs
Google : https://developers.google.com/identity/sign-in/ios/sign-in
Facebook : https://developers.facebook.com/docs/facebook-login/ios
After that just use few line of code to start.