Removed UIColor prefix as per code review comments

This commit is contained in:
Robinson, Blake 2019-12-12 09:32:09 -05:00
parent fb2cade157
commit 5135835471

View File

@ -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;