UIView extension for autolayout in Swift