Hi all!
When building with macOS 14 SDK in macOS 14 RC, the Sign In With Apple button(SignInWithAppleButton) stretches its background to occupy the entire window content view. We expect it to be in the area with a red stroke(see the screenshot)
Here's the code:
struct ContentView: View {
var body: some View {
SignInWithAppleButton(.signIn, onRequest: { $0.requestedScopes = [.fullName, .email] }, onCompletion: { _ in })
.signInWithAppleButtonStyle(.black)
.border(Color.red, width: 3)
.padding(80)
}
}
And screenshot:
One important addition: the button works, and its hit area remains within that red rectangle.
Any help is highly appreciated.
Thank you!