Fixed pace showing, added conversions between distance and pace. Added a new SecretView with some semi-private info. App is now in Version 1.0.0
This commit is contained in:
parent
7b421a0a73
commit
b77ef882e8
62 changed files with 2021 additions and 82 deletions
|
|
@ -6,9 +6,18 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
// this file will not have comments.
|
||||
// this code is considered simple enough to be
|
||||
// human-readable without aid, as long as
|
||||
// the reader has a basic understanding of
|
||||
// Swift and/or SwiftUI.
|
||||
let username = "admin"
|
||||
let password = "123"
|
||||
|
||||
struct DocsView: View {
|
||||
var body: some View {
|
||||
@State var pass: String = ""
|
||||
@State var user: String = ""
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
List {
|
||||
NavigationLink("Help", destination: HelpView())
|
||||
|
|
@ -26,15 +35,23 @@ struct DocsView: View {
|
|||
NavigationLink("Low Priority", destination: LowPriority())
|
||||
}
|
||||
Section(header: Text("App Information")) {
|
||||
Text("Version: Prerelease LVSXT10d.2")
|
||||
Text("Release date: 2022-06-04")
|
||||
NavigationLink("Software License", destination: LicenseView())
|
||||
Text("Version: 1.0.0")
|
||||
Text("Release date: 2022-06-10")
|
||||
Text("Start date: 2022-03-25")
|
||||
Text("App files: 9")
|
||||
Link("Built with SwiftUI \(Image(systemName: "swift"))", destination: URL(string: "https://developer.apple.com/xcode/swiftui")!)
|
||||
}
|
||||
Section(header: Text("Login")) {
|
||||
SecureField("Username", text: $user)
|
||||
SecureField("Password", text: $pass)
|
||||
if (pass == password && user == username) {
|
||||
NavigationLink("Contacts", destination: SecretView())
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Docs")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct DocsView_Previews: PreviewProvider {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue