Slider is a user interface control which enables you to select a value from a specified linear range of values by using touch. Slider in SwiftUI is very similar to a UISlider in UIKit. This tutorial will teach you how to create and use a slider in SwiftUI. In order to read a value from …
Month: March 2020
How to use tuples in Swift
Tuples in Swift are very lightweight data types which enable you to create, store and pass around groups of values which can be of different types. This can be very useful when trying to return multiple values from a function in Swift as a single compound value. Creating tuples How to define a basic tuple which …