diff --git a/Marks/Views/BookmarksView.swift b/Marks/Views/BookmarksView.swift index 54bacf5..3427c91 100644 --- a/Marks/Views/BookmarksView.swift +++ b/Marks/Views/BookmarksView.swift @@ -122,6 +122,7 @@ struct BookmarksView: View { } label: { Image(systemName: "sparkles") } + .accessibilityLabel("AI actions") } ToolbarItem(placement: .topBarTrailing) { HStack(spacing: 16) { @@ -138,6 +139,7 @@ struct BookmarksView: View { Button { showAddBookmark = true } label: { Image(systemName: "plus") } + .accessibilityLabel("Add bookmark") Button { Task { await viewModel.toggleUnreadFilter() } } label: { @@ -146,9 +148,11 @@ struct BookmarksView: View { : "line.3.horizontal.decrease.circle") .contentTransition(.symbolEffect(.replace)) } + .accessibilityLabel("Unread filter") Button { showSettings = true } label: { Image(systemName: "gearshape") } + .accessibilityLabel("Settings") } } } diff --git a/Marks/Views/Library/LibraryKit.swift b/Marks/Views/Library/LibraryKit.swift index b5da6e8..43e89d6 100644 --- a/Marks/Views/Library/LibraryKit.swift +++ b/Marks/Views/Library/LibraryKit.swift @@ -131,13 +131,18 @@ enum PaperType { extension View { /// Puts a screen on the paper ground: clears the system list/scroll - /// background so the sheet shows through, and tints the bar to match so a - /// large title doesn't sit on a white strip above the content. + /// background so the sheet shows through, and lets the paper reach past the + /// safe area so the bar sits on it. + /// + /// Deliberately no `.toolbarBackground` — setting it makes SwiftUI build a + /// fresh UINavigationBarAppearance and throw away the one PaperAppearance + /// installed, which silently reverted these screens' titles to the system + /// bold sans. The bar is transparent by appearance, so the background + /// below is all it needs. func paperSurface() -> some View { self .scrollContentBackground(.hidden) .background(Paper.sheet.ignoresSafeArea()) - .toolbarBackground(Paper.sheet, for: .navigationBar) } /// Editable text. Monospaced, because in this design anything you type is