mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Hide keyboard on navigation
This commit is contained in:
parent
5c9d17f265
commit
a347474437
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user