Merge remote-tracking branch 'refs/remotes/origin/UIRefinementsSL'
This commit is contained in:
commit
216cdac025
@ -30,11 +30,13 @@ struct ContentView: View {
|
|||||||
.environmentObject(dataStore)
|
.environmentObject(dataStore)
|
||||||
}
|
}
|
||||||
HStack {
|
HStack {
|
||||||
|
Spacer()
|
||||||
Button(action: {
|
Button(action: {
|
||||||
self.currentView = 0
|
self.currentView = 0
|
||||||
}) {
|
}) {
|
||||||
VStack {
|
VStack {
|
||||||
Label("Discovery", systemImage: "dot.radiowaves.left.and.right")
|
Image(systemName: "dot.radiowaves.left.and.right")
|
||||||
|
Text("Discovery")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
@ -42,7 +44,8 @@ struct ContentView: View {
|
|||||||
self.currentView = 1
|
self.currentView = 1
|
||||||
}) {
|
}) {
|
||||||
VStack {
|
VStack {
|
||||||
Label("Feeds", systemImage: "person.2")
|
Image(systemName: "person.2")
|
||||||
|
Text("Feeds")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
@ -50,13 +53,14 @@ struct ContentView: View {
|
|||||||
self.currentView = 2
|
self.currentView = 2
|
||||||
}) {
|
}) {
|
||||||
VStack {
|
VStack {
|
||||||
Label("Settings",systemImage: "gear")
|
Image(systemName: "gear")
|
||||||
|
Text("Settings")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Spacer()
|
||||||
}
|
}
|
||||||
.frame(height: UIScreen.main.bounds.height * 0.05)
|
.frame(height: UIScreen.main.bounds.height * 0.05)
|
||||||
}
|
}
|
||||||
.padding()
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,42 +16,43 @@ struct SettingsView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|
||||||
|
NavigationView {
|
||||||
List {
|
List {
|
||||||
Section(header: Text("Personal Feed ID")) {
|
Section(header: Text("Personal Feed ID")) {
|
||||||
Label(dataStore.personalID, systemImage: "person.crop.circle")
|
Label(dataStore.personalID, systemImage: "person.crop.circle")
|
||||||
}
|
|
||||||
Section(header: Text("Friends")) {
|
|
||||||
ForEach(dataStore.friends) { friend in
|
|
||||||
Label(friend, systemImage: "person")
|
|
||||||
}
|
}
|
||||||
}
|
Section(header: Text("Friends")) {
|
||||||
}
|
ForEach(dataStore.friends) { friend in
|
||||||
.navigationTitle("Settings")
|
Label(friend, systemImage: "person")
|
||||||
.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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.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