When I drag out the SignInWithAppleButton control using swiftui, this is the code that is shown. However, I get the error message "Argument passed to call that takes no arguments". The compiler only allows the project to build when SignInWithAppleButton() is used.
I've found lots of code online that uses the below format. Why isn't it working now? What is the correct alternative if onRequest and onCompletion can't be used?
SignInWithAppleButton(
onRequest: { request in
},
onCompletion: { result in
}
)