UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

DAY 15

Swift review, day three

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.

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.

  1. Properties
  2. Static properties and methods
  3. Access control
  4. Polymorphism and typecasting
  5. Closures

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

Bonus: find the Swifty words!

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!

  1. Fixed-size collection of values of any type
  2. A custom type with cases and associated values
  3. Makes a method shared across all instances of a class or struct
  4. How we check for and extract the value inside an optional
  5. Type that stores data as pairs of keys and values
  6. Places variables into strings easily
  7. Loop type commonly used to make infinite loops
  8. A list of criteria that a type must conform to
  9. Evaluates multiple conditions in one block of code
  10. Special method that creates instances of structs and classes
  11. Functions that accept one or more parameters of a specific type
  12. Code to handle errors thrown by do
  13. Value passed into a function
  14. Unwrapping alternative to if let
  15. Sends back a value from a function
  16. A catch-all case for switch blocks
  17. An anonymous function that you can pass around as data
  18. A whole number
  19. Telling Swift the specific type a variable should be
  20. Question marks after optionals
  21. Code that is triggered when properties change
  22. May or may not exist
  23. Keyword that lets function parameters be modified outside the function
  24. Access control that restricts a property to being used only inside its type
  25. Skips the rest of the current loop iteration
  26. Loop that always executes at least once
  27. The return type of a function that returns nothing
  28. How we refer to the current instance of an object
  29. Struct initializer that assigns values to all properties
  30. The name for how values used in a closure are stored for later use
  31. A variable attached to a struct or class
  32. A type that spans values between two numbers
  33. Special syntax for final parameter closures
  34. Type that holds a large floating-point number
  35. The name for math symbols like + and -
  36. The ability to treat an object of one type as another type
  37. Adds extra functionality to a type
  38. The name for a function that exists inside a struct or class
  39. Exits a loop immediately
  40. Keyword for a function that can trigger errors
  41. Key that lets us replace a method inherited from a superclass
  42. When one class builds on another
  43. Reads the length of a string
  44. Apple's all-in-one code editing environment
  45. Operator that takes three operands
  46. Puts off work until later
  47. Name for a method called before class destruction
  48. Ordered collection of values stored in a single value
  49. A class that cannot be inherited from
  50. Holds either true or false

Need help? Tweet me @twostraws!


Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

100 Days of Swift

The 100 Days of Swift is a free collection of videos, tutorials, tests, and more to help you learn Swift faster. Click here to learn more, or watch the video below.

Back to 100 Days of Swift

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.