mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-24 08:00:38 +00:00
Fix language sheet
This commit is contained in:
parent
9320b2f114
commit
b7937e3580
1 changed files with 3 additions and 8 deletions
|
@ -35,13 +35,8 @@ extension StatusEditor {
|
|||
viewModel.setInitialLanguageSelection(preference: preferences.recentlyUsedLanguages.first ?? preferences.serverPreferences?.postLanguage)
|
||||
}
|
||||
.accessibilityLabel("accessibility.editor.button.language")
|
||||
.popover(isPresented: $isLanguageSheetDisplayed) {
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
languageSheetView
|
||||
} else {
|
||||
languageSheetView
|
||||
.frame(width: 400, height: 500)
|
||||
}
|
||||
.sheet(isPresented: $isLanguageSheetDisplayed) {
|
||||
languageSheetView
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,7 +56,7 @@ extension StatusEditor {
|
|||
languageSheetSection(languages: languageSearchResult(query: languageSearch))
|
||||
}
|
||||
}
|
||||
.searchable(text: $languageSearch)
|
||||
.searchable(text: $languageSearch, placement: .navigationBarDrawer)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
Button("action.cancel", action: { isLanguageSheetDisplayed = false })
|
||||
|
|
Loading…
Reference in a new issue