mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-29 08:29:22 +00:00
Keep the geohash field focused when the keyboard opens (#1837)
A LazyVStack drops rows outside the visible area. When the keyboard shrank the sheet, it dropped the focused geohash field. A VStack keeps it, and the list is short. Fixes #1797.
This commit is contained in:
1 parent
bfe7bd4b58
commit
e09d84fa18
1 file changed
+3
-1
@@ -306,7 +306,9 @@ struct LocationChannelsSheet: View {
|
||||
|
||||
private var channelListContent: some View {
|
||||
ScrollView {
|
||||
LazyVStack(spacing: 0) {
|
||||
// Not lazy: a LazyVStack drops the focused geohash field's row
|
||||
// when the keyboard opens (#1797).
|
||||
VStack(spacing: 0) {
|
||||
channelRow(title: Strings.meshTitle(peerListModel.reachableMeshPeerCount), subtitlePrefix: Strings.subtitlePrefix(geohash: "bluetooth", coverage: bluetoothRangeString()), isSelected: isMeshSelected, titleColor: palette.accentBlue, titleBold: peerListModel.reachableMeshPeerCount > 0) {
|
||||
locationChannelsModel.select(ChannelID.mesh)
|
||||
isPresented = false
|
||||
|
||||
Reference in new issue
Block a user