From a971a84689a38f9589df507721a71281a8665f0d Mon Sep 17 00:00:00 2001 From: Jozef Koval Date: Sun, 1 Nov 2026 22:02:22 +0100 Subject: [PATCH] Keep the geohash field focused when the keyboard opens 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. --- bitchat/Views/LocationChannelsSheet.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitchat/Views/LocationChannelsSheet.swift b/bitchat/Views/LocationChannelsSheet.swift index c7fdef39..08763b50 100644 --- a/bitchat/Views/LocationChannelsSheet.swift +++ b/bitchat/Views/LocationChannelsSheet.swift @@ -296,7 +296,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: standardBlue, titleBold: peerListModel.reachableMeshPeerCount > 0) { locationChannelsModel.select(ChannelID.mesh) isPresented = false