Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 8401321

Browse files
committed
Add note in library source regarding possible SVProgressHUD crash
1 parent 7d0c5b3 commit 8401321

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WordPressAuthenticator/Unified Auth/GoogleAuthenticator.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ private extension GoogleAuthenticator {
231231
}
232232

233233
// Initiate unified path by attempting to login first.
234+
//
235+
// `SVProgressHUD.show()` will crash in an app that doesn't have a window property in its
236+
// `UIApplicationDelegate`, such as those created via the Xcode templates circa version 12
237+
// onwards.
234238
SVProgressHUD.show()
235239
loginFacade.loginToWordPressDotCom(withSocialIDToken: token, service: SocialServiceName.google.rawValue)
236240
}

0 commit comments

Comments
 (0)