added ios module

This commit is contained in:
2026-08-17 20:13:28 +08:00
parent a8031e2e3b
commit 7c81976b2b
27 changed files with 2767 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import SwiftUI
struct TrainingView: View {
@ObservedObject var controller: PlayerController
@ObservedObject var catalogVM: CatalogViewModel
@Binding var continuousPlayback: Bool
let onFullscreen: () -> Void
var body: some View {
ScrollView(showsIndicators: false) {
VStack(spacing: 0) {
PlayerSectionView(
controller: controller,
showsContinuousToggle: true,
continuousPlayback: $continuousPlayback,
onFullscreen: onFullscreen
)
CatalogView(vm: catalogVM)
.padding(.bottom, 20)
}
}
.onChange(of: continuousPlayback) { enabled in
controller.setContinuousPlayback(enabled)
controller.showTransientMessage(
enabled
? "已开启连续播放,将按句子顺序连续播放"
: "已关闭连续播放,将循环播放当前句子"
)
}
}
}