In the last demo, you created the first elements in the Fibonacci sequence. You created an array and stored values inside it. You also saw some improvements you can make to your code to make it smarter and more organized.
You covered a lot of ground in this lesson. You:
Wrote your first Swift code in Xcode’s playground.
Learned about variables and constants.
Understood the difference between the numeric data types Int, Float and Double.
Compared two values and stored a Bool result.
Created Strings and concatenated them in different ways.
Created modified versions of strings by changing their case and replacing words and letters.
Learned about arrays and wrote a basic version of the Fibonacci sequence.
In the next lesson, you’ll learn about flow-control statements where you can change what happens in your code based on a condition. You’ll also learn about loops and how you can repeat the execution of your code multiple times and control how many times and when to stop. Finally, you’ll start to organize your code into functions.
See forum comments
This content was released on Apr 24 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.