update colors iOS
This commit is contained in:
parent
90c5b805aa
commit
9a1762feb8
Binary file not shown.
@ -8,20 +8,27 @@
|
||||
import SwiftUI
|
||||
|
||||
struct MenuView: View {
|
||||
|
||||
@Environment(\.colorScheme) var colorScheme
|
||||
|
||||
var body: some View {
|
||||
TabView {
|
||||
ContentView()
|
||||
.tabItem {
|
||||
Image(systemName: "camera")
|
||||
.foregroundColor(Color(colorScheme == .dark ? .white : .black))
|
||||
Text("Photo")
|
||||
.foregroundColor(Color(colorScheme == .dark ? .white : .black))
|
||||
}
|
||||
PlatesListView()
|
||||
.tabItem {
|
||||
Image(systemName: "list.dash")
|
||||
.foregroundColor(Color(colorScheme == .dark ? .white : .black))
|
||||
Text("History")
|
||||
.foregroundColor(Color(colorScheme == .dark ? .white : .black))
|
||||
}
|
||||
}
|
||||
.accentColor(Color(.white))
|
||||
.accentColor(Color(colorScheme == .dark ? .white : .black))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@ import SwiftUI
|
||||
|
||||
struct PlatesListView: View {
|
||||
|
||||
@Environment(\.colorScheme) var colorScheme
|
||||
@ObservedObject var imagesList = PlatesList.shared
|
||||
@State var isPresented: Bool = false
|
||||
|
||||
@ -42,6 +43,7 @@ struct PlatesListView: View {
|
||||
isPresented.toggle()
|
||||
} label: {
|
||||
Image(systemName: "trash")
|
||||
.foregroundColor(Color(colorScheme == .dark ? .white : .black))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user