mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Fix the iOS build of study slides and listening.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3ffe01af1d
commit
27a845c1d6
2 changed files with 10 additions and 2 deletions
|
|
@ -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 }
|
enum Phase { case idle, playing, paused }
|
||||||
|
|
||||||
private let synth = AVSpeechSynthesizer()
|
private let synth = AVSpeechSynthesizer()
|
||||||
|
|
|
||||||
|
|
@ -1521,7 +1521,7 @@ struct SlidesScreen: View {
|
||||||
private func slidePage(_ slide: J) -> some View {
|
private func slidePage(_ slide: J) -> some View {
|
||||||
ScrollView {
|
ScrollView {
|
||||||
slideStack(slide)
|
slideStack(slide)
|
||||||
.padding(.horizontal, MacChrome.pageInset)
|
.padding(.horizontal, slideInset)
|
||||||
.padding(.top, 22)
|
.padding(.top, 22)
|
||||||
.padding(.bottom, 28)
|
.padding(.bottom, 28)
|
||||||
.frame(maxWidth: 860)
|
.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 {
|
private func slideStack(_ slide: J) -> some View {
|
||||||
VStack(alignment: .leading, spacing: 18) {
|
VStack(alignment: .leading, spacing: 18) {
|
||||||
Text(slide.str("kicker"))
|
Text(slide.str("kicker"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue