20 lines
410 B
Swift
Executable File
20 lines
410 B
Swift
Executable File
import ComposableArchitecture
|
|
import Inject
|
|
import SwiftUI
|
|
|
|
struct ModelSectionView: View {
|
|
@ObserveInjection var inject
|
|
@Bindable var store: StoreOf<SettingsFeature>
|
|
let shouldFlash: Bool
|
|
|
|
var body: some View {
|
|
Section("Transcription Model") {
|
|
ModelDownloadView(
|
|
store: store.scope(state: \.modelDownload, action: \.modelDownload),
|
|
shouldFlash: shouldFlash
|
|
)
|
|
}
|
|
.enableInjection()
|
|
}
|
|
}
|