Added tab view and restructured code to have just three tabs. Also got minutes to hours overflow working, seconds has currently gotten worse in functionality. See change log in-app for more details
This commit is contained in:
parent
15389248af
commit
8cb3960507
5 changed files with 103 additions and 98 deletions
|
|
@ -9,44 +9,40 @@ import SwiftUI
|
|||
import RichTextView
|
||||
|
||||
struct ModalView: View {
|
||||
@State var showSheet2 = false
|
||||
@State var mathSheet = false
|
||||
@State var problemSheet = false
|
||||
|
||||
var body: some View {
|
||||
Text("Help")
|
||||
.font(.largeTitle)
|
||||
.bold()
|
||||
.padding(.top, 40)
|
||||
Text("Due to limitations in our system, you can only use kilometers and miles at this time. \nSmaller units like meters and feet are not supported. \nYou can, however, use decimals, such as .2km or .8mi.\n\nWe apologize for any inconvenience. In the future, we hope to make our app easier to use.")
|
||||
.padding()
|
||||
Button("See our math", action: {
|
||||
self.showSheet2.toggle()
|
||||
})
|
||||
.padding(30)
|
||||
.sheet(isPresented: self.$showSheet2, content: {
|
||||
SubSubView()
|
||||
})
|
||||
VStack {
|
||||
Text("Help")
|
||||
.font(.largeTitle)
|
||||
.bold()
|
||||
.padding(.top, 40)
|
||||
|
||||
Text("Due to limitations in our system, you can only use kilometers and miles at this time. \nSmaller units like meters and feet are not supported. \nYou can, however, use decimals, such as .2km or .8mi.\n\nWe apologize for any inconvenience. In the future, we hope to make our app easier to use.")
|
||||
.padding()
|
||||
|
||||
Button("See our math", action: {
|
||||
self.mathSheet.toggle()
|
||||
})
|
||||
.padding(30)
|
||||
.sheet(isPresented: self.$mathSheet, content: {
|
||||
algorithmView()
|
||||
})
|
||||
|
||||
Button("Known issues", action: {
|
||||
self.problemSheet.toggle()
|
||||
})
|
||||
.padding(30)
|
||||
.padding(.top, -30)
|
||||
.sheet(isPresented: self.$problemSheet, content: {
|
||||
problemView()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct SubView: View {
|
||||
@State var showSheet2 = false
|
||||
var body: some View {
|
||||
Text("Help")
|
||||
.font(.largeTitle)
|
||||
.bold()
|
||||
.padding(.top, 40)
|
||||
Text("Due to limitations in our system, you can only use kilometers and miles at this time. \nSmaller units like meters and feet are not supported. \nYou can, however, use decimals, such as .2km or .8mi.\n\nWe apologize for any inconvenience. In the future, we hope to make our app easier to use.")
|
||||
.padding()
|
||||
Button("See our math", action: {
|
||||
self.showSheet2.toggle()
|
||||
})
|
||||
.padding(30)
|
||||
.sheet(isPresented: self.$showSheet2, content: {
|
||||
SubSubView()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
struct SubSubView: View {
|
||||
struct algorithmView: View {
|
||||
|
||||
var body: some View {
|
||||
Text("The Algorithm")
|
||||
|
|
@ -113,3 +109,15 @@ struct mathLaTeX_inator: UIViewRepresentable {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct problemView: View {
|
||||
var body: some View {
|
||||
VStack {
|
||||
Text("Known issues")
|
||||
.font(.largeTitle)
|
||||
.bold()
|
||||
.padding(.top, 40)
|
||||
Text("\n\u{2022} You can not dismiss the keyboard\n\t\u{2022} This hides the tab bar at the bottom\n\u{2022} Visually displayed seconds and total time are incorrect\n\t\u{2022} This DOES NOT affect pace. That is still correct.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue