centered.

This commit is contained in:
Kevin G Christiano 2019-10-23 15:17:01 -04:00
parent 083b630054
commit 8aaa8cb77f

View File

@ -732,7 +732,7 @@ extension UITapGestureRecognizer {
return false
}
case .center:
let halfBounds = label.bounds.width / 2
let halfBounds = label.center.x
let halfIntrinsicWidth = intrinsicWidth / 2
if tapLocation.x > halfBounds + halfIntrinsicWidth {