Quit after delay
This commit is contained in:
@ -41,7 +41,7 @@ struct ContentView: View {
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.fontWeight(.ultraLight)
|
||||
.padding()
|
||||
.onTapGesture { unlock(quit: true) }
|
||||
.onTapGesture { coordinator.startUnlock() }
|
||||
if coordinator.isPerformingRequest {
|
||||
ProgressView()
|
||||
.progressViewStyle(CircularProgressViewStyle())
|
||||
@ -59,14 +59,10 @@ struct ContentView: View {
|
||||
guard launched else {
|
||||
return
|
||||
}
|
||||
unlock(quit: true)
|
||||
coordinator.startUnlock(quitAfterSuccess: true)
|
||||
didLaunchFromComplication = false
|
||||
}
|
||||
}
|
||||
|
||||
private func unlock(quit: Bool) {
|
||||
coordinator.startUnlock(quitAfterSuccess: quit)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
|
Reference in New Issue
Block a user