Create Custom Units and Dimensions in Swift (Part 2)
In this article we are going to lear how to create custom units and dimensions to extend the ones that Swift offers. Creating a Custom Unit To create a custom unit we need to use the initializer of the dimension we want to add a…
Mobile App Development
0
Units and Measurement Conversion in Swift (Part 1)
Most developers are not aware that Apple introduced the units and measurements APIs. They are part of the Foundation framework and available on every Apple platform. Let’s get started by seeing what Unit, Dimension, and Measurement are. Unit The Unit class represents a unit that…