Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.48 KB

swift.md

File metadata and controls

38 lines (27 loc) · 1.48 KB

Swift

The latest programming language from Apple for OS X and iOS.

Beginning Swift

You should be able to

  • Understand the difference between let and var.
  • Use native Swift types like Int and String.
  • Use native Swift collections like Array and Dictionary.
  • Understand the difference between class and struct.
  • Allow for a custom struct to be mutated.
  • Use enums and switches which don't represent integers.
  • Use and understand Optionals.
  • Create functions which take or return closures.

Intermediate Swift

You should be able to

  • Implement a custom collection type using Generics.
  • Use extentions and protocols to extend class and struct functionality.
  • Create subscript functionality on a custom class or struct.
  • Overload the addition operator for a custom class or struct.
  • Use pattern matching in a switch statement.
  • Use typealias to create a type for a closure.
  • Use an autoclosure instead of a closure.

Ongoing Reference