Files
VirtualBuddy/VirtualUI/Source/Installer/Components/RestoreImageURLInputView.swift
Guilherme Rambo e19a74866c Liquid glass adoption (#677)
* Raise deployment target to macOS 14, bump version

* Integrate Liquid Glass compatibility components

* Fix onChange(of:) deprecation warnings

* Update project settings

* Improve styling of setup and configuration UI components

* Fix fatal error in VMSavedStatesController.preview

* Tweak session UI

* Do not use prominent button style in VM configuration sheet so it matches overall setup wizard style

* Fix incorrectly sized buttons in grouped lists
2026-05-22 09:47:01 -03:00

22 lines
571 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) {
viewModel.validateCustomRemoteURL()
}
}
}
#if DEBUG
#Preview {
VMInstallationWizard.preview(step: .restoreImageInput)
}
#endif // DEBUG