This commit is contained in:
Arkadiusz Fal
2022-03-26 15:22:29 +01:00
parent c8fa972a61
commit c14a4a153d
3 changed files with 11 additions and 1 deletions

View File

@@ -141,6 +141,12 @@ final class NavigationModel: ObservableObject {
channelToUnsubscribe = channel
presentingUnsubscribeAlert = channelToUnsubscribe != nil
}
func hideKeyboard() {
#if os(iOS)
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
#endif
}
}
typealias TabSelection = NavigationModel.TabSelection