mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 19:19:22 -04:00
Fix typo
This commit is contained in:
parent
0fc9661a6b
commit
08156e3eeb
@ -31,7 +31,7 @@ struct Focusable<Value: Hashable>: ViewModifier {
|
|||||||
private let value: Value
|
private let value: Value
|
||||||
private let focusState: FocusState<Value>.Binding
|
private let focusState: FocusState<Value>.Binding
|
||||||
private let onReturn: () -> Void
|
private let onReturn: () -> Void
|
||||||
private let onDissmiss: () -> Void
|
private let onDismiss: () -> Void
|
||||||
|
|
||||||
init(
|
init(
|
||||||
_ binding: FocusState<Value>.Binding,
|
_ binding: FocusState<Value>.Binding,
|
||||||
@ -42,7 +42,7 @@ struct Focusable<Value: Hashable>: ViewModifier {
|
|||||||
self.focusState = binding
|
self.focusState = binding
|
||||||
self.value = value
|
self.value = value
|
||||||
self.onReturn = onReturn
|
self.onReturn = onReturn
|
||||||
self.onDissmiss = onDismiss
|
self.onDismiss = onDismiss
|
||||||
}
|
}
|
||||||
|
|
||||||
func body(content: Content) -> some View {
|
func body(content: Content) -> some View {
|
||||||
@ -55,7 +55,7 @@ struct Focusable<Value: Hashable>: ViewModifier {
|
|||||||
onReturn()
|
onReturn()
|
||||||
}))
|
}))
|
||||||
.modifier(KeyPressHandler(key: .escape, action: {
|
.modifier(KeyPressHandler(key: .escape, action: {
|
||||||
onDissmiss()
|
onDismiss()
|
||||||
}))
|
}))
|
||||||
#else
|
#else
|
||||||
content
|
content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user