Introduce chkgfx (#3)

This commit was merged in pull request #3.
This commit is contained in:
kornerr committed 2026-10-22 05:17:21 +02:00
1 parent 1515a9483b
commit fb28dd55c7
77 files changed
+1598 -543

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
class ChkgfxComponent {
let ctrl = DialectController(ChkgfxContext())
static private(set) weak var singleton: ChkgfxComponent?
init() {
Self.singleton = self
//chkgfxRegisterEffects(ctrl)
chkgfxRegisterShoulds(ctrl)
}
func setup() {
chkgfxSet(F.didSetup, true)
}
}
+9
View File
@@ -0,0 +1,9 @@
import Combine
final class ChkgfxVM: ObservableObject {
static private(set) weak var shared: ChkgfxVM?
init() {
Self.shared = self
}
}
@@ -0,0 +1,24 @@
import SwiftUI
struct ChkgfxView: View {
@ObservedObject var vm: ChkgfxVM
init(_ vm: ChkgfxVM) {
self.vm = vm
}
var body: some View {
VStack(spacing: 16) {
ZStack {
Text("Check graphics")
.font(.largeTitle)
.foregroundStyle(.white)
.offset(x: 1, y: 1)
Text("Check graphics")
.font(.largeTitle)
.foregroundStyle(.black)
}
}
.padding(40)
}
}