-
Writing code, the Swift style

Different people have different styles of writing code. Working in a team means mixed styles, even when all developers are using a coding convention. Writing code in Swift can sometimes lead to unneeded if let, downcasting or force unwrapping values. An easy way to resolve these and many other issues is by introducing SwiftLint to…
-
Better way of initializing properties with default values

When using Objective-C, I used to initialize properties for some of the elements in the ViewController like this: Inside the method initView I would write the logic to preset how elements should look and behave. The problem with this – as more and more properties or outlets get added – the more I have to…
You must be logged in to post a comment.