From 9b76492c70d1a2647dd79f33cc531a4a9c754a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Tue, 3 Nov 2026 22:43:16 +0300 Subject: [PATCH] ar --- components/hp/windows/hpVM.swift | 11 ---------- components/hp/windows/view/HPView.swift | 22 ------------------- docs/hello-platform.md | 2 +- .../ver-windows/src/hp/hpVM.swift | 2 +- .../ver-windows/src/hp/view/HPView.swift | 2 +- 5 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 components/hp/windows/hpVM.swift delete mode 100644 components/hp/windows/view/HPView.swift diff --git a/components/hp/windows/hpVM.swift b/components/hp/windows/hpVM.swift deleted file mode 100644 index 52d8f3e..0000000 --- a/components/hp/windows/hpVM.swift +++ /dev/null @@ -1,11 +0,0 @@ -import SwiftCrossUI - -final class HPVM: ObservableObject { - @Published var countText = "" - - static private(set) weak var shared: HPVM? - - init() { - Self.shared = self - } -} diff --git a/components/hp/windows/view/HPView.swift b/components/hp/windows/view/HPView.swift deleted file mode 100644 index dde17f7..0000000 --- a/components/hp/windows/view/HPView.swift +++ /dev/null @@ -1,22 +0,0 @@ -import SwiftCrossUI - -struct HPView: View { - @State var vm: HPVM - - init(_ vm: HPVM) { - self.vm = vm - } - - var body: some View { - VStack(spacing: 16) { - Text("Hello, platform!") - .font(.largeTitle) - Text(vm.countText) - .font(.title3.monospaced()) - Button("Increment") { - hpSet(F.didClickIncrement, true) - } - } - .padding(40) - } -} diff --git a/docs/hello-platform.md b/docs/hello-platform.md index 916eb5c..066f33a 100644 --- a/docs/hello-platform.md +++ b/docs/hello-platform.md @@ -228,7 +228,7 @@ by this packaging step. `ver-windows/` mirrors the Linux SwiftCrossUI target with `WinUIBackend`. It shares the counter component and generated Swift dialect via -relative symlinks. Its SwiftCrossUI model and view live in `components/hp/windows`. Check out the repository with Git symlinks enabled on Windows +relative symlinks. It reuses the SwiftCrossUI model and view in `components/hp/linux`. Check out the repository with Git symlinks enabled on Windows (Developer Mode or appropriate symlink permissions are needed). With the Windows Swift toolchain, Windows SDK, and the Windows App SDK runtime diff --git a/hello/hello-platform/ver-windows/src/hp/hpVM.swift b/hello/hello-platform/ver-windows/src/hp/hpVM.swift index 0896026..7394425 120000 --- a/hello/hello-platform/ver-windows/src/hp/hpVM.swift +++ b/hello/hello-platform/ver-windows/src/hp/hpVM.swift @@ -1 +1 @@ -../../../../../components/hp/windows/hpVM.swift \ No newline at end of file +../../../../../components/hp/linux/hpVM.swift \ No newline at end of file diff --git a/hello/hello-platform/ver-windows/src/hp/view/HPView.swift b/hello/hello-platform/ver-windows/src/hp/view/HPView.swift index 0b0610b..1b79f15 120000 --- a/hello/hello-platform/ver-windows/src/hp/view/HPView.swift +++ b/hello/hello-platform/ver-windows/src/hp/view/HPView.swift @@ -1 +1 @@ -../../../../../../components/hp/windows/view/HPView.swift \ No newline at end of file +../../../../../../components/hp/linux/view/HPView.swift \ No newline at end of file