e76fa586f1
Ship dual-track learning (daily accumulation vs textbook),沪教/商务词书 APIs and UI, native iOS wrapper with bundled H5, and production book import on deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
560 B
Swift
23 lines
560 B
Swift
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
@State private var environment = ServerSettings.environment
|
|
@State private var localBaseURL = ServerSettings.localBaseURL
|
|
@State private var activeBaseURL = ServerSettings.activeBaseURL
|
|
|
|
var body: some View {
|
|
WordLoopWebContainer(
|
|
environment: $environment,
|
|
localBaseURL: $localBaseURL,
|
|
baseURL: activeBaseURL,
|
|
onBaseURLChange: { baseURL in
|
|
activeBaseURL = baseURL
|
|
}
|
|
)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
}
|