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!
Seeing same issue in a AppKit app, so unrelated to SwiftUI. Seems the view is correctly positioned, but there is a sublayer of the control that is completely messed up, filling the entire window. Clicking in the place that the button should be does actually sign you in, but the visuals are completely off. Has to be a bug on Apple's side I would guess.