This project is a demonstration of how to securely encode/decode custom objects that have properties of types that do not conform to
Codable
protocol.
A Simple unit conversion app using Apple's Units and Measurement APIs, to convert between measurement units -Dimension
, using .converted(to:)
to produce the required result.
We have array of units (Area, Length, Mass, etc..), map of unit types -Dimension
in each unit -[String, [Dimension]]
, and we have list of favorite conversions, these favorites will be persisted in Document Directory folder, for easy access.
- How to store NSCoding data using Codable
- Object Persistence in Swift with NSSecureCoding
- How to use NSSecureCoding in Swift
- NSSecureCoding
- iOS 16.2+
- Xcode 15
- Swift 5.9