Meshtastic-Apple/Meshtastic/Views/MapKitMap/Custom/TileDownloadStatus.swift
Austin Payne b1aee0a7d6 feature: add icon when downloading tiles for offline use
It can be difficult to tell when the app is in progress of downloading map tiles
for offline use, especially when hitting a slow server like USGS or on a slow
network. Adds a download circle icon to indicate download progress to the
user. Also helpfully informs when a zoom level is outside the range.
2024-02-15 21:41:18 -07:00

14 lines
287 B
Swift

import SwiftUI
struct TileDownloadStatus: View {
@ObservedObject var tileManager = OfflineTileManager.shared
var body: some View {
if tileManager.status == .downloading {
Image(systemName: "arrow.down.circle.fill")
.foregroundColor(.gray)
} else {
EmptyView()
}
}
}