From 121c290f3b4beddbcde1d5db7d2131929304c42f Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Thu, 24 Mar 2022 13:35:49 +0530 Subject: [PATCH] updating title edge insets for button as per VDS --- MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift b/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift index edea692f..e7d0aacc 100644 --- a/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift +++ b/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift @@ -128,7 +128,6 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol { self.borderColor = borderColor } } - titleEdgeInsets = getContentEdgeInsets() } private func getInnerPadding() -> CGFloat { @@ -257,6 +256,7 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol { } layer.cornerRadius = getInnerPadding() + titleEdgeInsets = getContentEdgeInsets() } open override func setupView() {