mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
* Add SwiftUI previews for simple helper views Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/a2a43e8c-24fd-443a-8a98-13b678770edd Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com> * Add previews for action buttons, ChannelForm, MetricsColumnDetail, and DeviceOnboarding Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/a2a43e8c-24fd-443a-8a98-13b678770edd Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com> * Add previews for config views, log views, AppLog, Firmware, AppData, and UserConfig Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/a2a43e8c-24fd-443a-8a98-13b678770edd Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com> * Add preview for PositionConfig Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/a2a43e8c-24fd-443a-8a98-13b678770edd Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com> * Fix formatting bugs in #Preview blocks: restore missing .environmentObject/.environment modifiers and add proper tab indentation Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/7eeb7a54-7928-466f-8e39-b00d0012a09d Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com> * Linting fixes --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com> Co-authored-by: Garth Vander Houwen <garthvh@yahoo.com>
75 lines
2 KiB
Swift
75 lines
2 KiB
Swift
//
|
|
// About.swift
|
|
// Meshtastic
|
|
//
|
|
// Copyright(c) Garth Vander Houwen 10/6/22.
|
|
//
|
|
import SwiftUI
|
|
import StoreKit
|
|
|
|
struct AboutMeshtastic: View {
|
|
|
|
let locale = Locale.current
|
|
|
|
var body: some View {
|
|
|
|
VStack {
|
|
List {
|
|
Section(header: Text("What is Meshtastic?")) {
|
|
Text("An open source, off-grid, decentralized, mesh network that runs on affordable, low-power radios.")
|
|
.font(.title3)
|
|
|
|
}
|
|
Section(header: Text("Apple Apps")) {
|
|
|
|
if locale.region?.identifier ?? "US" == "US" {
|
|
HStack {
|
|
Image("SOLAR_NODE")
|
|
.resizable()
|
|
.aspectRatio(contentMode: .fit)
|
|
.frame(width: 75)
|
|
.cornerRadius(5)
|
|
.padding()
|
|
VStack(alignment: .leading) {
|
|
Link("Buy Complete Radios", destination: URL(string: "http://garthvh.com")!)
|
|
.font(.title2)
|
|
Text("Get custom waterproof solar and detection sensor router nodes, aluminium desktop nodes and rugged handsets.")
|
|
.font(.callout)
|
|
}
|
|
}
|
|
}
|
|
Link("Sponsor App Development", destination: URL(string: "https://github.com/sponsors/garthvh")!)
|
|
.font(.title2)
|
|
Link("GitHub Repository", destination: URL(string: "https://github.com/meshtastic/Meshtastic-Apple")!)
|
|
.font(.title2)
|
|
Button("Review the app") {
|
|
if let scene = UIApplication.shared.connectedScenes
|
|
.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
|
|
AppStore.requestReview(in: scene)
|
|
}
|
|
}
|
|
.font(.title2)
|
|
|
|
Text("Version: \(Bundle.main.appVersionLong) (\(Bundle.main.appBuild))")
|
|
}
|
|
|
|
Section(header: Text("Project information")) {
|
|
Link("Website", destination: URL(string: "https://meshtastic.org")!)
|
|
.font(.title2)
|
|
Link("Documentation", destination: URL(string: "https://meshtastic.org/docs/getting-started")!)
|
|
.font(.title2)
|
|
}
|
|
Text("Meshtastic® Copyright Meshtastic LLC")
|
|
.font(.caption)
|
|
}
|
|
}
|
|
.navigationTitle("About")
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
NavigationView {
|
|
AboutMeshtastic()
|
|
}
|
|
}
|