This project uses parts of libextobjc by Justin Spahr-Summers to handle weak
and strong
references in blocks. Additional, there is nothing special, but a few and simple rules based on Swift syntax:
When it’s possible, we make use of two tiny but elegant macros:
#define var __auto_type
#define let const __auto_type
Instead of using:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
you should use:
let defaults = [NSUserDefaults standardUserDefaults];
Keeping the example above in mind, instead of:
let defaults = [NSUserDefaults standardUserDefaults];
you should use:
let defaults = NSUserDefaults.standardUserDefaults;
The project uses 4 spaces
.
This project uses absolutely no (ok, nearly) XIB’s and no Storyboards. The entire UI is prototyped in code. This gives you clarity on what is happening behind the scenes, you avoid mind boggling merge conflicts and last but not least it results in a better sleep at night. It’s that simple! 😉