From 8aaa8cb77f82eb3f0b40025f5b9f315fc730af88 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Wed, 23 Oct 2019 15:17:01 -0400 Subject: [PATCH] centered. --- MVMCoreUI/Atoms/Views/Label.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index fba8545f..b0871957 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -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 {