I would like to set widthAnchor and heightAnchor directly linking a UIView to a CGSize:
let iconSize = CGSize(width: 16, height: 16)
viewA ~ iconSize
equivalent to
viewA.widthAnchor.constraint(equalToConstant: iconSize.width).isActive = true
viewA.heightAnchor.constraint(equalToConstant: iconSize.height).isActive = true
I would like to set widthAnchor and heightAnchor directly linking a UIView to a CGSize:
equivalent to