blue
This commit is contained in:
1 parent
fb5a9b77c8
commit
c4364ba526
37 files changed
+669
No files matched your search
@@ -0,0 +1,14 @@
|
||||
class BlueComponent {
|
||||
let ctrl = DialectController(BlueContext())
|
||||
static private(set) weak var singleton: BlueComponent?
|
||||
|
||||
init() {
|
||||
Self.singleton = self
|
||||
//blueRegisterEffects(ctrl)
|
||||
blueRegisterShoulds(ctrl)
|
||||
}
|
||||
|
||||
func setup() {
|
||||
blueSet(F.didSetup, true)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import Combine
|
||||
|
||||
final class BlueVM: ObservableObject {
|
||||
static private(set) weak var shared: BlueVM?
|
||||
|
||||
init() {
|
||||
Self.shared = self
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../mac/view/BlueView.swift
|
||||
@@ -0,0 +1,24 @@
|
||||
import SwiftUI
|
||||
|
||||
struct BlueView: View {
|
||||
@ObservedObject var vm: BlueVM
|
||||
|
||||
init(_ vm: BlueVM) {
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user