Post

Replies

Boosts

Views

Activity

Reply to No pop up to ask a user’s location within the app in MacOS
I build a multiple platform App, so I need both Location When in Use Usage Description and Location Usage Description, right? I can pop up the request because of Macbook air M2, do not in an intel mac if only Location When in Use Usage Description, right? Why I cannot find the description string in the pop up window, in my air M2? And now I find that these descriptions been put into the project file instead of the info.plist. is this a problem?
Jun ’24
Reply to SignInWithAppleButton doesn't change style on colorScheme changes.
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:
Feb ’21