Files
notes/Notes/Views/App/ContentView.swift
T
rzen 970eebaf3c Move search to a dedicated tab in the tab bar
Replace the Notes list's searchable accessory with a Tab(role: .search)
— the separated magnifier at the trailing edge of the iOS 26 tab bar —
backed by a new SearchView over text, tags, and capture location. The
Notes list drops its search state and always shows the context shelf
plus all notes.

Claude-Session: https://claude.ai/code/session_01GKfAiKiQKLDTmbiGva4FGE
2026-07-15 16:25:34 -04:00

32 lines
882 B
Swift

import SwiftUI
struct ContentView: View {
@Environment(SyncEngine.self) private var syncEngine
var body: some View {
if syncEngine.iCloudStatus == .unavailable {
ICloudGateView()
} else {
TabView {
Tab("Notes", systemImage: "square.and.pencil") {
NotesListView()
}
Tab("Tags", systemImage: "tag") {
TagsView()
}
Tab("Settings", systemImage: "gearshape") {
SettingsView()
}
// role: .search renders as the separated magnifier tab at the
// trailing edge of the tab bar on iOS 26.
Tab("Search", systemImage: "magnifyingglass", role: .search) {
SearchView()
}
}
}
}
}