Remove Face ID Permission Text
Nucleic-Session: 3EF7F067-2199-41C2-997C-5546C1A8A5C4 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -1,23 +1,17 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
import LocalAuthentication
|
|
||||||
import NucleicProtocol
|
import NucleicProtocol
|
||||||
|
|
||||||
/// The defining interaction (UX_IOS §5): answer an approval. High-risk (destructive/network)
|
/// The defining interaction (UX_IOS §5): answer an approval. High-risk (destructive/network)
|
||||||
/// requires Face ID/Touch ID before Allow is enabled — deliberate friction mirroring the Mac.
|
/// still routes through the app (never the notification banner) so approval is a deliberate,
|
||||||
/// First-responder-wins: if the Mac (or another phone) answers first, the host's
|
/// in-context tap. First-responder-wins: if the Mac (or another phone) answers first, the
|
||||||
/// `approvalResolved` removes this card.
|
/// host's `approvalResolved` removes this card.
|
||||||
struct ApprovalCardView: View {
|
struct ApprovalCardView: View {
|
||||||
@EnvironmentObject var store: RemoteStore
|
@EnvironmentObject var store: RemoteStore
|
||||||
let approval: ApprovalRequest
|
let approval: ApprovalRequest
|
||||||
|
|
||||||
@State private var biometricPassed = false
|
|
||||||
@State private var authError: String?
|
|
||||||
@State private var showAlwaysMenu = false
|
@State private var showAlwaysMenu = false
|
||||||
|
|
||||||
private var requiresBiometric: Bool { approval.risk.isHigh }
|
private var allowEnabled: Bool { store.connectivity.isLive }
|
||||||
private var allowEnabled: Bool {
|
|
||||||
store.connectivity.isLive && (!requiresBiometric || biometricPassed)
|
|
||||||
}
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading, spacing: 10) {
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
|
|||||||
Reference in New Issue
Block a user