Making It So Users Can Cancel a Google Drive Login on iOS 9
10 January 2016
In working with the Google Drive SDK for iOS, one can appreciate its broad support for many different use cases including multiple iOS versions. Perhaps further updates are necessary as using the library in a Swift world requires significant effort.
After successfully integrating the SDK into a production app I can share some tips for making it a smoother experience.
For reference, the install guide by Google can be found here.
The OAuth2-based login screen had a UI problem where it wasn’t showing a cancel button thereby preventing cancellation of the login by users.
I’m listing some changes to GTMOAuth2ViewControllerTouch.m that will add a cancel button to the login screen.