mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
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.
14 lines
287 B
Swift
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()
|
|
}
|
|
}
|
|
}
|