April 2026
Intermediate
683 pages
25h 29m
English
Control flow is the basic steering mechanism in software development. It dictates in which direction the program should go, which is often determined by conditions.
So far, we’ve gone over variables and collections in Swift. In a nutshell, those are core features to make apps memorize and remember values. Now that those basics are in place, we can move forward to the building block of algorithms: control flow.
In the examples so far, you wrote code snippets in Swift language, and the computer processed them sequentially—line by line—as illustrated in Figure 4.1.
Figure 4.1 Simple Flow, Executed Line by Line
However, such a straightforward ...
Read now
Unlock full access