Sorry if I misplaced this, I have a question on variables declaration with initial values. According to the style guide, the proper way would be:
let maximumWidth: CGFloat = 106.5
My opinion is that:
let maximumWidth: CGFloat(106.5)
is better because it uses a designated initializer and itβs similar with structs initialization (eg. CGRect). What do you think?
Good point, and in fact CGFloat is a struct in Swift. However we all know what it means and this way conforms to the principle of preferring compact code.