Post not yet marked as solved
There is an instance method in SignInWithAppleButton: dialogIcon(_:).
func dialogIcon(_ icon: Image?) -> some View
Unfortunately, not documented (but some limited info here: https://stackoverflow.com/questions/76860051/how-to-change-the-icon-for-confirmation-dialogs-and-alerts-in-swiftui).
Did you try it ?
You just don't control the "when" directly.
Yes, but we can have some control with a dispatch:
Button {
// CreateUser() //another SwiftUI view, not a function
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
showCreate.toggle()
}
} label: {
Text(buttonLabel)
}
Post not yet marked as solved
Please show more code.
How did you declare viewedDetails ?
Post not yet marked as solved
Just a guess without more code.
Add addChild
addChild(vc) // <<-- ADD THIS
self.view.addSubview(button)
Post not yet marked as solved
Please show complete, executable code so that one can test.
We don't even know how SwiftUIView is defined.
Post not yet marked as solved
You have changed nothing on your account, that's the problem.
You have now to declare whether or not your are a trader (selling apps).
Get details here: https://developer.apple.com/help/app-store-connect/manage-compliance-information/manage-european-union-digital-services-act-trader-requirements/
Não alterou nada na sua conta, é esse o problema.
Tem agora de declarar se é ou não um comerciante (que vende aplicações).
Para mais pormenores, consulte: https://developer.apple.com/help/app-store-connect/manage-compliance-information/manage-european-union-digital-services-act-trader-requirements/
Post not yet marked as solved
I hope I understand correctly your question.
When you published on the AppStore, have you defined several languages (Portuguese and English for instance) ?
Have you defined Portuguese as the main language ? If not do it with a new release of your app: https://stackoverflow.com/questions/10967722/change-default-language-for-app-listing-in-itunes-connect
Quando publicaram na AppStore, definiram várias línguas (português e inglês, por exemplo)?
Definiu o português como língua principal? Se não o fez, faça-o com uma nova versão da sua aplicação: https://stackoverflow.com/questions/10967722/change-default-language-for-app-listing-in-itunes-connect
Post not yet marked as solved
I amp confused by your iOS version numbers.
It seems you have an existing 1.7.36
And now you try to create a 1.3.37, which is lower.
The new version should be at least 1.7.37.
Post not yet marked as solved
AFAIK, no way if userDefaults is a property of the model.
Did you try to declare userDefaults as environment var instead ?
Post not yet marked as solved
Have you evaluated how much RAM you need for this project ? Or do you just want the max possible (to be future proof). Clearly intel based was flexible to upgrade RAM which M series are not at all.
Please show complete code.
Where and how is customToken defined ? Is it an optional ?
If optional String, call should probably be:
Auth.auth().signIn(withCustomToken: customToken ?? "") { user, error in
// some code
}
More details here, in Swift Programming language (functions & closures):
« A closure passed as the last argument to a function can appear immediately after the parentheses. When a closure is the only argument to a function, you can omit the parentheses entirely. »
The Swift Programming Language (Swift 5.7)
The init is defined as:
init(
alignment: HorizontalAlignment = .center,
spacing: CGFloat? = nil,
@ViewBuilder content: () -> Content
)
So, you can also call
struct ContentView: View {
var body: some View {
VStack(content: {
Text("sth")
})
}
}
The Stack { } where the content (closure) is outside the parameters list, is just a writing facility.
You can do the same in other Swift functions:
array.map() { closure }
or
array.map { closure}
Check that userInteraction is enabled.
For instance, in
private func configure()
self.isUserInteractionEnabled = true
Post not yet marked as solved
As Scott outlined, why do you need the exact Date of Birth ? You have no way to check it anyway. What would you miss by asking whether or not user is more than 18 ?
It also seems you ask for gender. Why do you need ?