在范围内未找到 SignInWithAppleButton (SwiftUI 2)

alp*_*nec 5 xcode swiftui sign-in-with-apple

我正在 SwiftUI 应用程序(iOS 14、SwiftUI 2)中实现 Sign In With Apple。我正在导入 AuthenticationServices 框架。应用程序构建成功,可以在 iOS 设备或模拟器上运行。但是我无法在预览/画布中预览视图(设计视图会更容易)。

Cannot find 'SignInWithAppleButton' in scope
Run Code Online (Sandbox Code Playgroud)

知道为什么吗?谢谢阿克塞尔

PS:Xcode 12 beta 6,macOS Big Sur beta 5

Kou*_*iga 11

自 beta 6SignInWithAppleButtonSwiftUI,的命名空间已从移至AuthenticationServices。只是import AuthenticationServices