For more playgrounds like this, visit http://hackswift.co/playgrounds
Swift Reference is a handy playground file that can be used when you are starting to learn swift.
It covers the basic syntax definitions and different ways to use
- Variables and Constants
- Control Flows
- Functions and Closures
- Objects and Classes
- Enumerations and Structures
- Protocols and Extensions
- Generics
Keep this handy and copy-paste the required snippets into your projects.
Feel free to suggest modifications, report issues or improvements in the issues section.
Follow us on Twitter : @hackswift