SignInWithAppleButton not found in scope (SwiftUI 2)

Hello,

I'm implementing Sign In With Apple in a SwiftUI application (iOS 14, SwiftUI 2). I'm importing the AuthenticationServices framework. The app build successfully, and can run on an iOS device or simulator. But I cannot preview the view in the Preview / Canvas (it would be easier to design the view).

Code Block
Cannot find 'SignInWithAppleButton' in scope

Any idea why?
Thanks
Axel

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

I'm having the same issue. The app builds and runs on simulator and device, however, all SwiftUI previews for all views in the project fail with the error described above.

Xcode 12 (12A7208), macOS 10.15.7

Thanks!
Facing the same issue!
I'm running Xcode Version 12.0.1 (12A7300) on Catalina 10.15.7.

Add an import:

import AuthenticationServices
SignInWithAppleButton not found in scope (SwiftUI 2)
 
 
Q