Hide keyboard on navigation

This commit is contained in:
Arkadiusz Fal 2022-08-09 21:14:05 +02:00
parent 7dcba77cf0
commit f8d240ad86
2 changed files with 7 additions and 0 deletions

View File

@ -93,6 +93,7 @@ final class NavigationModel: ObservableObject {
return
}
navigation.hideKeyboard()
player.hide()
navigation.presentingChannel = false
@ -130,6 +131,8 @@ final class NavigationModel: ObservableObject {
player.hide()
#endif
navigation.hideKeyboard()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) {
recents.add(recent)
@ -156,6 +159,8 @@ final class NavigationModel: ObservableObject {
navigation.presentingPlaylist = false
navigation.tabSelection = .search
navigation.hideKeyboard()
if let searchQuery = searchQuery {
let recent = RecentItem(from: searchQuery)
recents.add(recent)

View File

@ -202,6 +202,8 @@ final class PlayerModel: ObservableObject {
}
#endif
navigation.hideKeyboard()
DispatchQueue.main.async { [weak self] in
withAnimation(.linear(duration: 0.25)) {
self?.presentingPlayer = true