diff --git a/README.md b/README.md index 8153e05..25119df 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,11 @@ void GHAwesomeFunction(BOOL hasSomeArgs); ``` * Constructors should generally return `instancetype` rather than `id`. + * Prefer C99 struct initialiser syntax to helper functions (such as `CGRectMake()`). + +```objc + CGRect rect = { .origin.x = 3.0, .origin.y = 12.0, .size.width = 15.0, size.height = 80.0 }; + ``` ## Expressions