I'm having some issues with SwiftUI's SignInWithAppleButton's signInWithAppleButtonStyle. I am trying to change the color of the button based on the user's current scheme or if it changes. This is iOS 14 and SwiftUI: @Environment(.colorScheme) var currentScheme @State var appleButtonWhite = false VStack{ SignInWithAppleButton( tttttttt.signUp, ttttttttonRequest: { request inttttttt ttttttttttrequest.requestedScopes = [.fullName, .email] tttttttt}, ttttttttonCompletion: { result in ttttttttttswitch result { ttttttttttcase .success (let authResults): ttttttttttttprint(Authorization successful.) ttt ttttttttttcase .failure (let error): ttttttttttttprint(Authorization failed: + error.localizedDescription) tttttttttt} tttttttt} tttttt) tttttt.frame(minWidth: 0, maxWidth: .infinity) tttttt.signInWithAppleButtonStyle(appleButtonWhite ? .white : .black) } .onChange(of: currentScheme, perform: { (scheme) in ttttif scheme == .light tttt{ ttttttappleButtonWhite = false tttt} ttttelse tttt{ tt
2
0
2.4k