add windows stub
This commit is contained in:
1 parent
e4dc8bd473
commit
321388b98d
13 files changed
+103
No files matched your search
@@ -0,0 +1,19 @@
|
||||
// swift-tools-version: 5.10
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "hello-platform",
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/moreSwift/swift-cross-ui", branch: "v0.10.0")
|
||||
],
|
||||
targets: [
|
||||
.executableTarget(
|
||||
name: "hello-platform",
|
||||
dependencies: [
|
||||
.product(name: "WinUIBackend", package: "swift-cross-ui"),
|
||||
.product(name: "SwiftCrossUI", package: "swift-cross-ui")
|
||||
],
|
||||
path: "src"
|
||||
)
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
import WinUIBackend
|
||||
import SwiftCrossUI
|
||||
|
||||
@main
|
||||
struct HPApp: App {
|
||||
let delegate = HPAppDelegate()
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup("Hello platform") {
|
||||
HPView(delegate.hpVM)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import SwiftCrossUI
|
||||
|
||||
final class HPAppDelegate {
|
||||
let hp = HPComponent()
|
||||
let hpVM = HPVM()
|
||||
|
||||
init() {
|
||||
otherSetupConsoleLogging(hp.ctrl, "HP")
|
||||
hp.setup()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
../../ver-mac/src/dialect.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../../components/hp/linux/hp.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../../components/hp/linux/hpVM.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../../../components/hp/linux/view/HPView.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../../components/other/other.swift
|
||||
Reference in new issue
Block a user