This is the final consolidation day for now, and is the last step before we start building real apps tomorrow. This time we’ll be reviewing access control, typecasting, closures, and more.
I’ve said it before, but I’ll reiterate it again here: closures are used a lot in SwiftUI, whether you realize it or not. This means you’ll see lots of code that requires self.someProperty
rather than just someProperty
, you’ll see lots of { someParameter in
being used, and more – please take the time to get closures right and it will pay off for the rest of your Swift career!
Today you have just five topics to review. Once you’ve completed them you can, if you want, go back over the tests from earlier days to improve on your scores.
Optional: once you’ve finished reviewing those, you can go back to the review page and go over the tests related to the topics above.
At this point, you now know enough about Swift that you should be looking to expand your learning material a little. Coming at the same topic from multiple angles will help round out your understanding, while also helping keep you up to date with future changes.
While there are lots of places you can try, I’d like to recommend the podcast I make with Sean Allen. It’s called Swift over Coffee, and we think it’s pretty awesome: it’s always 30 minutes or less, we always cover news and views from the community, and we always try to explain everything in a way that newcomers can follow. You can listen here
I’ve made a word search to help you test your knowledge of the most useful terms for Swift developers. You can download it as a PDF here, then use the clues below to figure out what words to look for. If you get stuck, try looking through my Swift glossary.
There are 50 in total, and words can go in all directions – good luck!
do
if let
Need help? Tweet me @twostraws!
SPONSORED ViRE offers discoverable way of working with regex. It provides really readable regex experience, code complete & cheat sheet, unit tests, powerful replace system, step-by-step search & replace, regex visual scheme, regex history & playground. ViRE is available on Mac & iPad.
Sponsor Hacking with Swift and reach the world's largest Swift community!
The 100 Days of SwiftUI is a free collection of videos, tutorials, tests, and more to help you learn SwiftUI faster. Click here to learn more, or watch the video below.
Link copied to your pasteboard.