mirror of
https://github.com/insidegui/VirtualBuddy.git
synced 2026-12-02 01:29:39 +08:00
* 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
22 lines
571 B
Swift
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
|