Swift 5

11 03, 2019

5 Tips to Bring your Swift Code to the Next Level

By |2019-03-11T22:55:30+00:00March 11th, 2019|Swift 5, Swift Programming|0 Comments

Alright, so here are five tips that can make your Swift code look more professional. Tip#1 Follow Apple’s naming conventions. If you have worked with other programming languages, it might be tempting to use the naming and coding style you’re used to. However, Swift has its own naming rules, so do your best to apply them. As the saying goes: “When in Rome, do as the Romans do.” Apple provides more details and examples in their API design guidelines. The bottom line is this: name your protocols, functions, types, properties, methods, variables, parameters so that their purpose is [...]