As you progress learning Swift it's a good idea to stop and double-check everything is sinking in, so here you can find questions and answers about a range of Swift language topics. Don't worry if you make mistakes: your answers aren't stored online, and you can always revisit topics as needed.
WARNING: This is very new, and might contain errors. Please tweet me @twostraws if you find anything wrong.
|Strings and integers|
|Doubles and booleans|
|Simple types: Summary|
|Arrays vs sets vs tuples|
|Dictionary default values|
|Creating empty collections|
|Enum associated values|
|Enum raw values|
|Complex types: Summary|
|Operators and conditions|
|Compound assignment operators|
|The ternary operator|
|Operators and conditions: Summary|
|Exiting multiple loops|
|Omitting parameter labels|
|Writing throwing functions|
|Running throwing functions|
|Creating basic closures|
|Accepting parameters in a closure|
|Returning values from a closure|
|Closures as parameters|
|Trailing closure syntax|
|Using closures as parameters when they accept parameters|
|Using closures as parameters when they return values|
|Shorthand parameter names|
|Closures with multiple parameters|
|Returning closures from functions|
|Creating your own structs|
|Properties and methods of strings|
|Properties and methods of arrays|
|Referring to the current instance|
|Static properties and methods|
|Creating your own classes|
|Protocols and extensions: Summary|
|Handling missing data|
|Unwrapping with guard|
|Implicitly unwrapped optionals|
Q: Where are my scores stored?
A: Your scores are stored using your web browser's local storage, so no one will else can see them – they are just there so you can monitor your progress.
Q: What do I get if I complete all the reviews?
A: You get the warm glow of knowing you've mastered the fundamentals of Swift – good job!
Q: Where can I go to learn more?
A: Each of the review sections are designed to follow my Swift in Sixty Seconds series, which is free online. If you complete all these and want to push your Swift skills further, you should read my book Pro Swift.
Q: What's stopping me from cheating?
A: I'm sure you could look up the correct answers as you go, but you're only cheating yourself – your scores aren't public.
Q: Where can I report mistakes?