Просмотр исходного кода

Make the presentingViewController property a weak reference.

Peter Andrews 4 лет назад
Родитель
Сommit
e6a2bcca95
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      GoogleSignIn/Sources/GIDSignInInternalOptions.h

+ 1 - 1
GoogleSignIn/Sources/GIDSignInInternalOptions.h

@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property(nonatomic, readonly, nullable) GIDConfiguration *configuration;
 
 /// The the view controller to use during the flow.
-@property(nonatomic, readonly, nullable) UIViewController *presentingViewController;
+@property(nonatomic, readonly, weak, nullable) UIViewController *presentingViewController;
 
 /// The callback block to be called at the completion of the flow.
 @property(nonatomic, readonly, nullable) GIDSignInCallback callback;