April 2017
Intermediate to advanced
316 pages
9h 33m
English
In the imperative programming style, values held in application variables whose contents never change are known as constants to differentiate them from variables that could be altered during execution. Examples might include a view's height and width or the value of Π to several decimal places.
Unlike programming languages such as Objective-C in which some types are mutable and some are not, Swift provides a way to create an immutable or mutable version of the same type. In Swift, we use the let and var keywords to create and store values:
Read now
Unlock full access