summaryrefslogtreecommitdiff
path: root/ShedCalc/RenderModel.swift
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2026-08-07 02:01:40 +0100
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2026-08-07 02:01:40 +0100
commit91d0042017e6c46f2c9f5d42d438836efa6d53e4 (patch)
treeaf8c2dbad8ea148e882136843634ff53c42dd20b /ShedCalc/RenderModel.swift
parentdabeb1603cf146aa671dddf949788b514b983b76 (diff)
downloadShedCalc-91d0042017e6c46f2c9f5d42d438836efa6d53e4.tar.gz
ShedCalc-91d0042017e6c46f2c9f5d42d438836efa6d53e4.zip
Added 3 views. Added basic beam drawing and basic calculations for width and length + beam drawing
Diffstat (limited to 'ShedCalc/RenderModel.swift')
-rw-r--r--ShedCalc/RenderModel.swift19
1 files changed, 19 insertions, 0 deletions
diff --git a/ShedCalc/RenderModel.swift b/ShedCalc/RenderModel.swift
new file mode 100644
index 0000000..86c5a1d
--- /dev/null
+++ b/ShedCalc/RenderModel.swift
@@ -0,0 +1,19 @@
+//
+// RenderModel.swift
+// ShedCalc
+//
+// Created by Jacky Jack on 01/08/2026.
+//
+import SwiftUI
+import Combine
+
+class RenderModel: ObservableObject {
+ // Scene rotation
+ @Published var rotationX: Float = 0.4
+ @Published var rotationY: Float = 0.6
+
+ func reset() {
+ rotationX = 0.4
+ rotationY = 0.6
+ }
+}