Post

Replies

Boosts

Views

Activity

Reply to Sign In With Apple Button stretches to occupy entire window
Found a simple workaround with SwiftUI: Applying a clipShape appears to bring the layer under control. You'll also need to set the width as after applying the clipShape, it will still fill the width. SignInWithAppleButton( .continue, onRequest: { request in request.requestedScopes = [.email] }, onCompletion: { result in // Whatever... } ) .clipShape(RoundedRectangle(cornerRadius: 4, style: .continuous)) // Workaround here... .frame(width: 300) // ...and here
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23