2022-10-06 23:15:33 -07:00
|
|
|
//
|
|
|
|
|
// About.swift
|
|
|
|
|
// Meshtastic
|
|
|
|
|
//
|
|
|
|
|
// Copyright(c) Garth Vander Houwen 10/6/22.
|
|
|
|
|
//
|
|
|
|
|
import SwiftUI
|
|
|
|
|
import StoreKit
|
|
|
|
|
|
|
|
|
|
struct AboutMeshtastic: View {
|
2023-03-06 10:33:18 -08:00
|
|
|
|
2022-10-06 23:15:33 -07:00
|
|
|
let locale = Locale.current
|
2023-03-06 10:33:18 -08:00
|
|
|
|
2022-10-06 23:15:33 -07:00
|
|
|
var body: some View {
|
2023-03-06 10:33:18 -08:00
|
|
|
|
|
|
|
|
VStack {
|
|
|
|
|
|
2022-10-06 23:15:33 -07:00
|
|
|
List {
|
|
|
|
|
Section(header: Text("What is Meshtastic?")) {
|
|
|
|
|
Text("An open source, off-grid, decentralized, mesh network built to run on affordable, low-power devices.")
|
|
|
|
|
.font(.title3)
|
2023-03-06 10:33:18 -08:00
|
|
|
|
2022-10-06 23:15:33 -07:00
|
|
|
}
|
|
|
|
|
Section(header: Text("Apple Apps")) {
|
|
|
|
|
Button("Review the app") {
|
|
|
|
|
if let scene = UIApplication.shared.connectedScenes
|
|
|
|
|
.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
|
|
|
|
|
SKStoreReviewController.requestReview(in: scene)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.font(.title2)
|
|
|
|
|
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)
|
|
|
|
|
}
|
2022-12-09 07:19:42 -08:00
|
|
|
if locale.region?.identifier ?? "no locale" == "US" {
|
2022-10-06 23:15:33 -07:00
|
|
|
Section(header: Text("Get Devices")) {
|
|
|
|
|
Link("Buy Complete Radios", destination: URL(string: "https://www.etsy.com/shop/GarthVH")!)
|
|
|
|
|
.font(.title2)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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)
|
|
|
|
|
}
|
2023-01-03 23:05:35 -08:00
|
|
|
Text("Meshtastic® Copyright Meshtastic LLC")
|
2022-10-06 23:15:33 -07:00
|
|
|
.font(.caption)
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-12-13 08:47:14 -08:00
|
|
|
.navigationTitle("about")
|
2022-10-06 23:15:33 -07:00
|
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
|
|
|
}
|
|
|
|
|
}
|