Fix the iOS build of study slides and listening.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pepaskopec-blip 2026-10-08 12:43:31 +02:00
commit 27a845c1d6
2 changed files with 10 additions and 2 deletions

View file

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

View file

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