GasLaw
SwiftUIJam
masOS project about Ideal Gas Law forThis SwiftUI macOS app models the Ideal Gas Law in a engine cylinder.
Our starting point:
- Atmospheric pressure, 101.325 kPa
- Volume of a cylinder, 400 cm3
- Room temperature, 20ºC
These values are added in Constants/Units.swift
The gauges drawings were made in Figma, imported into PaintCode as .svg. The drawing codes can be found in Views/Gauges.swift
.
To show the drawing code NSRepresentableView
is used.
These two Stackoverflow articles helped me: