I don't fully grok the implications of extending framework classes in Swift yet, but being able to directly write
let view1 = UIView()
let view2 = UIView()
view1.width == 200
view1.height == view1.width
view2.width == view1.width
view2.height == view2.width
seems more natural. Not sure if it's worth the risk of collisions though…
I don't fully grok the implications of extending framework classes in Swift yet, but being able to directly write
seems more natural. Not sure if it's worth the risk of collisions though…