@@ -72,42 +72,20 @@ import SwiftUI
72
72
/// ```
73
73
public struct SignInWithAppleButtonType : IntrospectableViewType { }
74
74
75
- #if canImport(AuthenticationServices)
76
- import AuthenticationServices
77
-
78
75
extension IntrospectableViewType where Self == SignInWithAppleButtonType {
79
- public static var signInWithAppleButton : Self { . init( ) }
80
- }
76
+ @available (
77
+ * ,
78
+ unavailable,
79
+ message: """
80
+ Due to a mysterious bug on Apple's part that may cause a complete
81
+ app hang, an inevitable decision has been made to remove support
82
+ for `SignInWithAppleButton` introspection.
83
+
84
+ We apologize for this inconvenience.
81
85
82
- extension iOSViewVersion < SignInWithAppleButtonType , ASAuthorizationAppleIDButton > {
83
- @available ( * , unavailable, message: " SignInWithAppleButton isn't available on iOS 13 " )
84
- public static let v13 = Self . unavailable ( )
85
- public static let v14 = Self ( for: . v14)
86
- public static let v15 = Self ( for: . v15)
87
- public static let v16 = Self ( for: . v16)
88
- public static let v17 = Self ( for: . v17)
89
- }
90
-
91
- extension tvOSViewVersion < SignInWithAppleButtonType , ASAuthorizationAppleIDButton > {
92
- @available ( * , unavailable, message: " SignInWithAppleButton isn't available on tvOS 13 " )
93
- public static let v13 = Self . unavailable ( )
94
- public static let v14 = Self ( for: . v14)
95
- public static let v15 = Self ( for: . v15)
96
- public static let v16 = Self ( for: . v16)
97
- public static let v17 = Self ( for: . v17)
98
- }
99
-
100
- extension macOSViewVersion < SignInWithAppleButtonType , ASAuthorizationAppleIDButton > {
101
- @available ( * , unavailable, message: " SignInWithAppleButton isn't available on macOS 10.15 " )
102
- public static let v10_15 = Self . unavailable ( )
103
- public static let v11 = Self ( for: . v11)
104
- public static let v12 = Self ( for: . v12)
105
- public static let v13 = Self ( for: . v13)
106
- public static let v14 = Self ( for: . v14)
107
- }
108
-
109
- extension visionOSViewVersion < SignInWithAppleButtonType , ASAuthorizationAppleIDButton > {
110
- public static let v1 = Self ( for: . v1)
86
+ More details can be found at https://github.com/siteline/swiftui-introspect/issues/400
87
+ """
88
+ )
89
+ public static var signInWithAppleButton : Self { . init( ) }
111
90
}
112
91
#endif
113
- #endif
0 commit comments