From b7e76e6da499010e78743101fa45c41631572859 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 13 Sep 2025 11:35:23 +0200 Subject: [PATCH] Location notes: show block name (from reverse geocode) in header instead of 'street-level notes' --- bitchat/Views/LocationNotesView.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bitchat/Views/LocationNotesView.swift b/bitchat/Views/LocationNotesView.swift index f27779f6..82f727cd 100644 --- a/bitchat/Views/LocationNotesView.swift +++ b/bitchat/Views/LocationNotesView.swift @@ -6,6 +6,7 @@ struct LocationNotesView: View { let geohash: String @Environment(\.colorScheme) var colorScheme + @ObservedObject private var locationManager = LocationChannelManager.shared @Environment(\.dismiss) private var dismiss @State private var draft: String = "" @@ -43,9 +44,11 @@ struct LocationNotesView: View { VStack(alignment: .leading, spacing: 2) { Text("notes @ #\(geohash)") .font(.system(size: 16, weight: .bold, design: .monospaced)) - Text("street-level notes") - .font(.system(size: 12, design: .monospaced)) - .foregroundColor(secondaryTextColor) + if let blockName = locationManager.locationNames[.block], !blockName.isEmpty { + Text(blockName) + .font(.system(size: 12, design: .monospaced)) + .foregroundColor(secondaryTextColor) + } } Spacer() Button(action: { dismiss() }) {