From 91d0042017e6c46f2c9f5d42d438836efa6d53e4 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Fri, 7 Aug 2026 02:01:40 +0100 Subject: Added 3 views. Added basic beam drawing and basic calculations for width and length + beam drawing --- ShedCalc/RenderModel.swift | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ShedCalc/RenderModel.swift (limited to 'ShedCalc/RenderModel.swift') 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 + } +} -- cgit v1.2.3