I have made the decision to learn Native IOS development using the Swift programming language and produce a portfolio of apps. This page would therefore be updated with everything I learn daily. I am primarily doing this to keep myself accountable to my progress. I’ll be updating my progress in reverse chronological order below:
Update 4
5th April 2020
- Learned the weird for loop syntax:
- Learned the repeat loop which is basically the same as a do-while loop in other languages:
- Learned that it is possible to label for loops and use the break keyword with labels to break outerLoops:
Update 3
4th April 2020
- Learned about range operators. Swift gives us two ways of making ranges: the ..< and … operators. The half-open range operator, ..<, creates ranges up to but excluding the final value, and the closed range operator, …, creates ranges up to and including the final value.
- Range operators are useful in switch statements:
Update 2
4th April 2020
- Learned array declaration
- Learned Set declaration:
- Tuples allow you to store several values together in a single value.
- You can’t add or remove items from a tuple; they are fixed in size.
- You can’t change the type of items in a tuple; they always have the same types they were created with.
- Dictionaries can be declared like:
- Learned about enums and enum associated values:
Update 1
3rd April 2020
- Learned that Swift is a type-safe programming language like Javascript.
- Multiline strings would be coded like this
- String interpolation works like this :
- As opposed to Javascript, the “let” keyword defines constants that cannot be changed after declared.
- Type inference is possible by :