mirror of
https://github.com/insidegui/VirtualBuddy.git
synced 2026-12-05 00:29:26 +08:00
22 lines
576 B
Swift
22 lines
576 B
Swift
import SwiftUI
|
|
import VirtualCore
|
|
|
|
struct RestoreImageURLInputView: View {
|
|
@EnvironmentObject var viewModel: VMInstallationViewModel
|
|
|
|
var body: some View {
|
|
VirtualBuddyInstallerInputView {
|
|
TextField("Custom Download Link", text: $viewModel.data.customInstallImageRemoteURL, onCommit: viewModel.next)
|
|
}
|
|
.onChange(of: viewModel.data.customInstallImageRemoteURL) { _ in
|
|
viewModel.validateCustomRemoteURL()
|
|
}
|
|
}
|
|
}
|
|
|
|
#if DEBUG
|
|
#Preview {
|
|
VMInstallationWizard.preview(step: .restoreImageInput)
|
|
}
|
|
#endif // DEBUG
|