Skip to content

Commit d123d16

Browse files
committed
WIP
1 parent 5bb974a commit d123d16

File tree

1 file changed

+13
-35
lines changed

1 file changed

+13
-35
lines changed

Sources/ViewTypes/SignInWithAppleButton.swift

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -72,42 +72,20 @@ import SwiftUI
7272
/// ```
7373
public struct SignInWithAppleButtonType: IntrospectableViewType {}
7474

75-
#if canImport(AuthenticationServices)
76-
import AuthenticationServices
77-
7875
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.
8185
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() }
11190
}
11291
#endif
113-
#endif

0 commit comments

Comments
 (0)