Fixed some graphical Issues, like the toolbar labels and the navigation title
This commit is contained in:
parent
5e199f41f8
commit
4b24048477
@ -30,11 +30,13 @@ struct ContentView: View {
|
||||
.environmentObject(dataStore)
|
||||
}
|
||||
HStack {
|
||||
Spacer()
|
||||
Button(action: {
|
||||
self.currentView = 0
|
||||
}) {
|
||||
VStack {
|
||||
Label("Discovery", systemImage: "dot.radiowaves.left.and.right")
|
||||
Image(systemName: "dot.radiowaves.left.and.right")
|
||||
Text("Discovery")
|
||||
}
|
||||
}
|
||||
Spacer()
|
||||
@ -42,7 +44,8 @@ struct ContentView: View {
|
||||
self.currentView = 1
|
||||
}) {
|
||||
VStack {
|
||||
Label("Feeds", systemImage: "person.2")
|
||||
Image(systemName: "person.2")
|
||||
Text("Feeds")
|
||||
}
|
||||
}
|
||||
Spacer()
|
||||
@ -50,13 +53,14 @@ struct ContentView: View {
|
||||
self.currentView = 2
|
||||
}) {
|
||||
VStack {
|
||||
Label("Settings",systemImage: "gear")
|
||||
Image(systemName: "gear")
|
||||
Text("Settings")
|
||||
}
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
.frame(height: UIScreen.main.bounds.height * 0.05)
|
||||
}
|
||||
.padding()
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -16,42 +16,43 @@ struct SettingsView: View {
|
||||
|
||||
var body: some View {
|
||||
|
||||
|
||||
List {
|
||||
Section(header: Text("Personal Feed ID")) {
|
||||
Label(dataStore.personalID, systemImage: "person.crop.circle")
|
||||
}
|
||||
Section(header: Text("Friends")) {
|
||||
ForEach(dataStore.friends) { friend in
|
||||
Label(friend, systemImage: "person")
|
||||
NavigationView {
|
||||
List {
|
||||
Section(header: Text("Personal Feed ID")) {
|
||||
Label(dataStore.personalID, systemImage: "person.crop.circle")
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Settings")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
Button("Edit") {
|
||||
isPresentingEditView = true
|
||||
}
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $isPresentingEditView) {
|
||||
NavigationStack {
|
||||
SettingsEditView()
|
||||
.navigationTitle("Settings")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .cancellationAction){
|
||||
Button("Cancel") {
|
||||
isPresentingEditView = false
|
||||
}
|
||||
}
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
Button("Done") {
|
||||
isPresentingEditView = false
|
||||
}
|
||||
}
|
||||
Section(header: Text("Friends")) {
|
||||
ForEach(dataStore.friends) { friend in
|
||||
Label(friend, systemImage: "person")
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Settings")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
Button("Edit") {
|
||||
isPresentingEditView = true
|
||||
}
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $isPresentingEditView) {
|
||||
NavigationStack {
|
||||
SettingsEditView()
|
||||
.navigationTitle("Settings")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .cancellationAction){
|
||||
Button("Cancel") {
|
||||
isPresentingEditView = false
|
||||
}
|
||||
}
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
Button("Done") {
|
||||
isPresentingEditView = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user