You need solve it like following, I don't know why apple design it like this.
import SwiftUI
import AuthenticationServices
struct ContentView: View {
		@Environment(\.colorScheme) var currentScheme
		
		var body: some View {
				if self.currentScheme == .light {
						SignInWithAppleButtonView()
								.signInWithAppleButtonStyle(.black)
				} else {
						SignInWithAppleButtonView()
								.signInWithAppleButtonStyle(.white)
				}
		}
}
struct SignInWithAppleButtonView: View {
		var body: some View {
				SignInWithAppleButton(
						.signUp,
						onRequest: {_ in },
						onCompletion: {_ in }
				)
		}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: