I am working on a unit conversion app written in SwiftUI. How do I store Dimensions and make them persist when the app is closed.
@State var inUnit: Dimension = UnitMass.kilograms I have searched around and can't find anything on storing or converting this to a string. All I need to store is the UnitMass.kilograms.