-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Passkey button to example app #4
base: main
Are you sure you want to change the base?
Conversation
5de2c1c
to
75bef48
Compare
75bef48
to
9e1ae48
Compare
if viewModel.hasPasskeys { | ||
SignInPassKeysButton(action: { | ||
Task { | ||
await viewModel.loginPasskeys(window: sceneDelegate.window!, autofill: false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use .init()
instead, and it's advisable to avoid force unwrapping to prevent potential crashes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where should the .init()
be?
Image(systemName: self.biometryType == .faceID | ||
? "faceid" | ||
: "touchid") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it will better to move this to computed property will make it more readable what's ur opinion
self.biometryType == .faceID ? "faceid" : "touchid"
? Color.blue | ||
: Color.red.opacity(0.5)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
No description provided.