From 513583547170c5db35cc66c496fd1a1835fa6f83 Mon Sep 17 00:00:00 2001 From: "Robinson, Blake" Date: Thu, 12 Dec 2019 09:32:09 -0500 Subject: [PATCH] Removed UIColor prefix as per code review comments --- MVMCoreUI/Atoms/Buttons/Link.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MVMCoreUI/Atoms/Buttons/Link.swift b/MVMCoreUI/Atoms/Buttons/Link.swift index f7dd492e..b38c5f04 100644 --- a/MVMCoreUI/Atoms/Buttons/Link.swift +++ b/MVMCoreUI/Atoms/Buttons/Link.swift @@ -89,8 +89,8 @@ extension Link: MVMCoreViewProtocol { self.translatesAutoresizingMaskIntoConstraints = false; self.backgroundColor = .clear self.contentMode = .redraw - self.setTitleColor(UIColor.mfTextButton(), for: .normal) - self.setTitleColor(UIColor.mfCharcoal(), for: .highlighted) + self.setTitleColor(.mfTextButton(), for: .normal) + self.setTitleColor(.mfCharcoal(), for: .highlighted) // left alignment by default self.titleLabel?.textAlignment = .left self.contentHorizontalAlignment = .left @@ -109,7 +109,7 @@ extension Link: MVMCoreViewProtocol { extension Link: MVMCoreUIMoleculeViewProtocol { public func reset() { - self.setTitleColor(UIColor.mfTextButton(), for: .normal) + self.setTitleColor(.mfTextButton(), for: .normal) } public func setWithJSON(_ json: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) { @@ -120,7 +120,7 @@ extension Link: MVMCoreUIMoleculeViewProtocol { buttonDelegate = delegateObject?.buttonDelegate let color = unwrappedJson.stringForkey(KeyTextColor) - setTitleColor(UIColor.mfGet(forHex: color), for: .normal) + setTitleColor(.mfGet(forHex: color), for: .normal) self.titleLabel?.numberOfLines = 0 self.titleLabel?.lineBreakMode = .byWordWrapping;