diff --git a/bitchat/Views/ContentView.swift b/bitchat/Views/ContentView.swift index a2899e25..fe9d621d 100644 --- a/bitchat/Views/ContentView.swift +++ b/bitchat/Views/ContentView.swift @@ -1251,8 +1251,9 @@ struct ContentView: View { .background(backgroundColor.opacity(0.95)) Spacer() } - MatrixRainView() - .transition(.opacity) + // Simple system spinner while waiting for geohash + ProgressView() + .progressViewStyle(.circular) } .background(backgroundColor) .foregroundColor(textColor) diff --git a/bitchat/Views/LocationNotesView.swift b/bitchat/Views/LocationNotesView.swift index eec30aba..bc9edba4 100644 --- a/bitchat/Views/LocationNotesView.swift +++ b/bitchat/Views/LocationNotesView.swift @@ -26,18 +26,12 @@ struct LocationNotesView: View { } var body: some View { - ZStack { - VStack(spacing: 0) { - header - Divider() - list - Divider() - input - } - if manager.isLoading { - MatrixRainView() - .transition(.opacity) - } + VStack(spacing: 0) { + header + Divider() + list + Divider() + input } .background(backgroundColor) .foregroundColor(textColor) @@ -123,106 +117,3 @@ struct LocationNotesView: View { draft = "" } } - -// MARK: - Matrix Rain Loader -struct MatrixRainView: View { - @Environment(\.colorScheme) var colorScheme - private var fg: Color { colorScheme == .dark ? Color.green : Color(red: 0, green: 0.5, blue: 0) } - private let charset = Array("01abcdefghijklmnopqrstuvwxyzアイウエオカキクケコハヒフヘホ0123456789") - - var body: some View { - GeometryReader { geo in - let w = max(geo.size.width, 1) - let h = max(geo.size.height, 1) - let colWidth: CGFloat = 14 - let cols = max(Int(w / colWidth), 6) - ZStack { - ForEach(0.. Double { - let p = Double(idx) / Double(max(glyphs.count, 1)) - return 0.15 + (1.0 - p) * 0.85 - } - - private func randomGlyphs(_ n: Int) -> [String] { - (0..