uikit shenanigans: collectionview for the symbol picker??

This commit is contained in:
neon443
2025-06-14 17:45:38 +01:00
parent 4c9e72fad2
commit 2dd2c51059
8 changed files with 194 additions and 41 deletions

View File

@@ -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")