我在一个SwiftUI应用程序(iOS 14,SwiftUI 2)中实现了与苹果的登录。我正在导入AuthenticationServices框架。该应用程序构建成功,可以在iOS设备或模拟器上运行。但是我不能在preview / Canvas中预览视图(设计视图会更容易)。
Cannot find 'SignInWithAppleButton' in scope知道为什么吗?谢谢Axel
PS: Xcode 12测试版6,macOS Big Sur测试版5
发布于 2020-09-14 11:22:40
从测试版6开始,SignInWithAppleButton的命名空间已经从SwiftUI转移到了AuthenticationServices,只有import AuthenticationServices。
https://stackoverflow.com/questions/63873574
复制相似问题