Skip to content

Commit

Permalink
Improve language picker search UI
Browse files Browse the repository at this point in the history
  • Loading branch information
djphoenix committed Nov 12, 2022
1 parent 1c5ae88 commit 144395c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Application/VoiceOverLangSelector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ struct VoiceOverLangSelector: View {
Text(sect.title)
}
}
}.navigationTitle("VoiceOver").searchable(text: $searchText)
}.navigationTitle("VoiceOver")
#if os(macOS)
.listStyle(InsetListStyle(alternatesRowBackgrounds: true))
.searchable(text: $searchText, placement: SearchFieldPlacement.toolbar)
.listStyle(InsetListStyle(alternatesRowBackgrounds: true))
#else
.searchable(text: $searchText, placement: SearchFieldPlacement.navigationBarDrawer(displayMode: .always))
#endif
}
}

0 comments on commit 144395c

Please sign in to comment.