From 27a845c1d6c2a4d5a6216de75b0d35e4593c7dc4 Mon Sep 17 00:00:00 2001 From: pepaskopec-blip Date: Thu, 8 Oct 2026 12:43:31 +0200 Subject: [PATCH] Fix the iOS build of study slides and listening. Co-authored-by: Cursor --- ios/Graduately/UI/ExercisesMore.swift | 2 +- ios/Graduately/UI/Screens.swift | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ios/Graduately/UI/ExercisesMore.swift b/ios/Graduately/UI/ExercisesMore.swift index 16db681..8ec7aa3 100644 --- a/ios/Graduately/UI/ExercisesMore.swift +++ b/ios/Graduately/UI/ExercisesMore.swift @@ -1402,7 +1402,7 @@ struct PlotScreen: View { } } -private final class EnSpeaker: NSObject, ObservableObject, AVSpeechSynthesizerDelegate { +private final class EnSpeaker: NSObject, ObservableObject, AVSpeechSynthesizerDelegate, @unchecked Sendable { enum Phase { case idle, playing, paused } private let synth = AVSpeechSynthesizer() diff --git a/ios/Graduately/UI/Screens.swift b/ios/Graduately/UI/Screens.swift index 1a87703..bf9b2f5 100644 --- a/ios/Graduately/UI/Screens.swift +++ b/ios/Graduately/UI/Screens.swift @@ -1521,7 +1521,7 @@ struct SlidesScreen: View { private func slidePage(_ slide: J) -> some View { ScrollView { slideStack(slide) - .padding(.horizontal, MacChrome.pageInset) + .padding(.horizontal, slideInset) .padding(.top, 22) .padding(.bottom, 28) .frame(maxWidth: 860) @@ -1529,6 +1529,14 @@ struct SlidesScreen: View { } } + private var slideInset: CGFloat { + #if os(macOS) + MacChrome.pageInset + #else + 16 + #endif + } + private func slideStack(_ slide: J) -> some View { VStack(alignment: .leading, spacing: 18) { Text(slide.str("kicker"))