Tag: initializer

  • Better way of initializing properties with default values

    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…