From 6611e381a27cd9ccf264f7312b58dd8bc06b4f92 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Mon, 15 Feb 2021 19:40:51 -0800 Subject: [PATCH] TabView: Fix margin between x and title --- App/Tabs/TabBarView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/App/Tabs/TabBarView.swift b/App/Tabs/TabBarView.swift index a25aa7d..9548194 100644 --- a/App/Tabs/TabBarView.swift +++ b/App/Tabs/TabBarView.swift @@ -61,10 +61,10 @@ class TabView: UIControl x: xOffset, y: insetBounds.minY, width: insetBounds.height, height: insetBounds.height ) - xOffset += imageView.frame.width + xOffset += imageView.frame.width + 12.0 label.frame = CGRect( - x: xOffset + 12.0, y: insetBounds.minY, + x: xOffset, y: insetBounds.minY, width: closeButton.frame.minX - closeButtonPadding - xOffset, height: insetBounds.height )