I'm trying to make SignInWithAppleButton.Style black when colorScheme is light and white when colorScheme is dark, but .signInWithAppleButtonStyle modifier doesn't update the view when colorScheme change.
This can be seen in build and in preview:
        
      
      
    Code Block swift struct LogInView: View { 	@Environment(\.colorScheme) private var colorScheme 	var body: some View { 		SignInWithAppleButton { _ in } onCompletion: { _ in } 		.signInWithAppleButtonStyle(colorScheme == .light ? .black : .white) 		.frame(height: 50) 		.padding() 	} } 
This can be seen in build and in preview:
Code Block swift struct LogInView_Previews: PreviewProvider { 	static var previews: some View { 		Group { 			LogInView() 			LogInView() 				.preferredColorScheme(.dark) 		} 	} }