mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
uikit shenanigans: collectionview for the symbol picker??
This commit is contained in:
@@ -12,6 +12,7 @@ struct ContentView: View {
|
||||
@StateObject var settingsModel: SettingsViewModel
|
||||
|
||||
@State private var showAddEventView: Bool = false
|
||||
@State private var symbolSearchInput: String = ""
|
||||
|
||||
var body: some View {
|
||||
NavigationSplitView {
|
||||
@@ -34,6 +35,14 @@ struct ContentView: View {
|
||||
Image(systemName: "tray.full")
|
||||
Text("Archive")
|
||||
}
|
||||
NavigationLink {
|
||||
SymbolsPicker(
|
||||
selection: $symbolSearchInput
|
||||
)
|
||||
} label: {
|
||||
Image(systemName: "star.circle")
|
||||
Text("Symbols")
|
||||
}
|
||||
NavigationLink {
|
||||
SettingsView(
|
||||
viewModel: viewModel,
|
||||
@@ -43,14 +52,6 @@ struct ContentView: View {
|
||||
Image(systemName: "gear")
|
||||
Text("Settings")
|
||||
}
|
||||
NavigationLink {
|
||||
SymbolsPicker(
|
||||
selection: .constant("")
|
||||
)
|
||||
} label: {
|
||||
Image(systemName: "gear")
|
||||
Text("Settings")
|
||||
}
|
||||
}
|
||||
} detail: {
|
||||
Text("Welcome to Near Future")
|
||||
|
||||
Reference in New Issue
Block a user