Create hello-platform for iOS (#11)

Co-authored-by: Михаил Капелько <kornerr@gmail.com>
This commit is contained in:
kornerr authored and Михаил Капелько committed 2026-11-01 07:19:54 +01:00
1 parent 1aa218d0bb
commit cf79e89dc4
18 files changed
+288 -57

No files matched your search

@@ -0,0 +1,12 @@
import SwiftUI
@main
struct HPApp: App {
@UIApplicationDelegateAdaptor(HPAppDelegate.self) private var appDelegate
var body: some Scene {
WindowGroup {
HPView(appDelegate.hpVM)
}
}
}
@@ -0,0 +1,18 @@
import UIKit
final class HPAppDelegate:
NSObject,
UIApplicationDelegate
{
let hp = HPComponent()
let hpVM = HPVM()
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
otherSetupConsoleLogging(hp.ctrl, "HP")
hp.setup()
return true
}
}
+1
View File
@@ -0,0 +1 @@
../../ver-mac/src/dialect.swift
+1
View File
@@ -0,0 +1 @@
../../../../../components/hp/hp.swift
+1
View File
@@ -0,0 +1 @@
../../../../../components/hp/hpVM.swift
@@ -0,0 +1 @@
../../../../../../components/hp/ios/view/HPView.swift
+1
View File
@@ -0,0 +1 @@
../../../../../components/other/other.swift