I really like setting properties in their declaration line. It just feels so good to leverage Swift's let
.
The drawback is that you must then set properties' properties in init, somewhat splitting the "setup" into two stages and mixing it with the "usage".
public class MyView : UIView {
private let titleLabel = UILabel()