Commit d5cfbf699f
d5cfbf699fb32dd51c7a7f2f5115b2300f2f4176
parent: 4b18bfdc94
Unsigned
cmc <hello@cleberg.net> · 2026-10-18 20:55 UTC
Remove the voice quality tip (!16)
Every spoken line plays from the bundled Jessica clips; the system voice is only a fallback for a line missing a clip, which the catalog tests and the debug assertion prevent. The first-launch overlay telling parents to download an enhanced voice no longer applies.
- Remove `VoiceTipOverlay` (`ContentView.swift`), the "Voice Quality Tips" home footer button, and `@AppStorage("hasSeenVoiceTip")`.
- Drop `-hasSeenVoiceTip YES` from `scripts/take-screenshots.sh` and `AccessibilityAuditTests`.
- README: remove the enhanced-voice note.
Tests: 238 unit tests pass. In the full run, 1 of the 8 audit tests (`testTodayRoutineLargestText`, "Dynamic Type font sizes are partially unsupported") failed. It passed on a rerun on this branch, and on `main`, so it is intermittent, not caused by this change.
Closes #15
Layout: unified · split
DayByDay/ContentView.swift
−43
| @@ -140,49 +140,6 @@ struct ContentView: View { |
| 140 | } |
140 | } |
| 141 | } |
141 | } |
| 142 | |
142 | |
| 143 | /// A one-time informational overlay for parents explaining how to download |
| |
| 144 | /// a higher-quality voice for the best experience. Dismissed with a single tap. |
| |
| 145 | struct VoiceTipOverlay: View { |
| |
| 146 | let onDismiss: () -> Void |
| |
| 147 | |
| |
| 148 | var body: some View { |
| |
| 149 | ZStack { |
| |
| 150 | Color.black.opacity(0.4) |
| |
| 151 | .ignoresSafeArea() |
| |
| 152 | |
| |
| 153 | CenteredScrollView { |
| |
| 154 | VStack(spacing: 20) { |
| |
| 155 | Image(systemName: "speaker.wave.3.fill") |
| |
| 156 | .font(.system(size: 48)) |
| |
| 157 | .foregroundStyle(.blue) |
| |
| 158 | |
| |
| 159 | Text("Better Voices Available") |
| |
| 160 | .font(.system(.title, design: .rounded, weight: .bold)) |
| |
| 161 | |
| |
| 162 | Text("For the best experience, download an enhanced voice on your device.\n\nSettings → Accessibility → Read & Speak → Voices → English → tap a voice marked Enhanced or Premium to download it.") |
| |
| 163 | .font(.system(.body, design: .rounded)) |
| |
| 164 | .multilineTextAlignment(.center) |
| |
| 165 | |
| |
| 166 | Text("Tap anywhere to dismiss") |
| |
| 167 | .font(.system(.callout, design: .rounded, weight: .medium)) |
| |
| 168 | .padding(.top, 8) |
| |
| 169 | } |
| |
| 170 | .padding(40) |
| |
| 171 | .frame(maxWidth: 520) |
| |
| 172 | .background( |
| |
| 173 | RoundedRectangle(cornerRadius: 32, style: .continuous) |
| |
| 174 | .fill(.regularMaterial) |
| |
| 175 | ) |
| |
| 176 | .padding(24) |
| |
| 177 | } |
| |
| 178 | } |
| |
| 179 | .contentShape(Rectangle()) |
| |
| 180 | .onTapGesture(perform: onDismiss) |
| |
| 181 | .accessibilityElement(children: .combine) |
| |
| 182 | .accessibilityAddTraits(.isButton) |
| |
| 183 | } |
| |
| 184 | } |
| |
| 185 | |
| |
| 186 | #Preview { |
143 | #Preview { |
| 187 | let container = ProfileStore.makeContainer(inMemory: true) |
144 | let container = ProfileStore.makeContainer(inMemory: true) |
| 188 | ContentView() |
145 | ContentView() |
DayByDay/Home/HomeView.swift
−11
| @@ -9,7 +9,6 @@ import SwiftUI |
| 9 | struct HomeView: View { |
9 | struct HomeView: View { |
| 10 | @Environment(ProfileSession.self) private var session |
10 | @Environment(ProfileSession.self) private var session |
| 11 | @Environment(\.dynamicTypeSize) private var typeSize |
11 | @Environment(\.dynamicTypeSize) private var typeSize |
| 12 | @AppStorage("hasSeenVoiceTip") private var hasSeenVoiceTip = false |
| |
| 13 | @State private var showingParentArea = false |
12 | @State private var showingParentArea = false |
| 14 | |
13 | |
| 15 | /// Two square tiles a row; one wide tile at the accessibility text sizes. |
14 | /// Two square tiles a row; one wide tile at the accessibility text sizes. |
| @@ -38,9 +37,6 @@ struct HomeView: View { |
| 38 | } |
37 | } |
| 39 | } |
38 | } |
| 40 | |
39 | |
| 41 | footerButton("Voice Quality Tips", systemImage: "speaker.wave.2.fill") { |
| |
| 42 | hasSeenVoiceTip = false |
| |
| 43 | } |
| |
| 44 | footerButton("Grown-Ups", systemImage: "lock.fill") { |
40 | footerButton("Grown-Ups", systemImage: "lock.fill") { |
| 45 | showingParentArea = true |
41 | showingParentArea = true |
| 46 | } |
42 | } |
| @@ -65,13 +61,6 @@ struct HomeView: View { |
| 65 | } |
61 | } |
| 66 | } |
62 | } |
| 67 | } |
63 | } |
| 68 | .overlay { |
| |
| 69 | if !hasSeenVoiceTip { |
| |
| 70 | VoiceTipOverlay { |
| |
| 71 | withAnimation { hasSeenVoiceTip = true } |
| |
| 72 | } |
| |
| 73 | } |
| |
| 74 | } |
| |
| 75 | .sheet(isPresented: $showingParentArea) { |
64 | .sheet(isPresented: $showingParentArea) { |
| 76 | GatedView(onCancel: { showingParentArea = false }) { |
65 | GatedView(onCancel: { showingParentArea = false }) { |
| 77 | ParentAreaView(onDone: { showingParentArea = false }) |
66 | ParentAreaView(onDone: { showingParentArea = false }) |
DayByDayUITests/AccessibilityAuditTests.swift
+1 −1
| @@ -99,7 +99,7 @@ final class AccessibilityAuditTests: XCTestCase { |
| 99 | private func launch(_ scene: String, textSize: String?) -> XCUIApplication { |
99 | private func launch(_ scene: String, textSize: String?) -> XCUIApplication { |
| 100 | sizeName = textSize == nil ? "default" : "largest" |
100 | sizeName = textSize == nil ? "default" : "largest" |
| 101 | let app = XCUIApplication() |
101 | let app = XCUIApplication() |
| 102 | app.launchArguments = ["-screenshot", scene, "-hasSeenVoiceTip", "YES"] |
102 | app.launchArguments = ["-screenshot", scene] |
| 103 | if let textSize { app.launchArguments += ["-UIPreferredContentSizeCategoryName", textSize] } |
103 | if let textSize { app.launchArguments += ["-UIPreferredContentSizeCategoryName", textSize] } |
| 104 | app.launch() |
104 | app.launch() |
| 105 | return app |
105 | return app |
README.org
+1 −2
| @@ -12,8 +12,7 @@ as large cards. tap a card to hear it read aloud. |
| 12 | - offline. no network, no accounts, no ads |
12 | - offline. no network, no accounts, no ads |
| 13 | |
13 | |
| 14 | * requires |
14 | * requires |
| 15 | ios 26 or later. for better audio, download an enhanced voice under |
15 | ios 26 or later. |
| 16 | Settings > Accessibility > Read & Speak > Voices. |
| |
| 17 | |
16 | |
| 18 | * release |
17 | * release |
| 19 | =scripts/take-screenshots.sh= retakes =AppStore/screenshots= on the iPhone 18 Pro Max |
18 | =scripts/take-screenshots.sh= retakes =AppStore/screenshots= on the iPhone 18 Pro Max |
scripts/take-screenshots.sh
+1 −1
| @@ -47,7 +47,7 @@ shoot() { # device name, output folder |
| 47 | # Set per launch: changing content_size restarts the status bar and drops the override. |
47 | # Set per launch: changing content_size restarts the status bar and drops the override. |
| 48 | xcrun simctl status_bar "$device" override --time 9:41 --dataNetwork wifi --wifiMode active \ |
48 | xcrun simctl status_bar "$device" override --time 9:41 --dataNetwork wifi --wifiMode active \ |
| 49 | --wifiBars 3 --cellularMode active --cellularBars 4 --batteryState charged --batteryLevel 100 |
49 | --wifiBars 3 --cellularMode active --cellularBars 4 --batteryState charged --batteryLevel 100 |
| 50 | xcrun simctl launch "$device" "$bundle" -screenshot "$scene" -hasSeenVoiceTip YES >/dev/null |
50 | xcrun simctl launch "$device" "$bundle" -screenshot "$scene" >/dev/null |
| 51 | file="$out/$2/$(printf %02d "$n")-$scene.png" |
51 | file="$out/$2/$(printf %02d "$n")-$scene.png" |
| 52 | # A screen that has not drawn yet is blank white, which compresses to a few KB. |
52 | # A screen that has not drawn yet is blank white, which compresses to a few KB. |
| 53 | tries=0 |
53 | tries=0 |