Removed UIColor prefix as per code review comments
This commit is contained in:
parent
fb2cade157
commit
5135835471
@ -89,8 +89,8 @@ extension Link: MVMCoreViewProtocol {
|
|||||||
self.translatesAutoresizingMaskIntoConstraints = false;
|
self.translatesAutoresizingMaskIntoConstraints = false;
|
||||||
self.backgroundColor = .clear
|
self.backgroundColor = .clear
|
||||||
self.contentMode = .redraw
|
self.contentMode = .redraw
|
||||||
self.setTitleColor(UIColor.mfTextButton(), for: .normal)
|
self.setTitleColor(.mfTextButton(), for: .normal)
|
||||||
self.setTitleColor(UIColor.mfCharcoal(), for: .highlighted)
|
self.setTitleColor(.mfCharcoal(), for: .highlighted)
|
||||||
// left alignment by default
|
// left alignment by default
|
||||||
self.titleLabel?.textAlignment = .left
|
self.titleLabel?.textAlignment = .left
|
||||||
self.contentHorizontalAlignment = .left
|
self.contentHorizontalAlignment = .left
|
||||||
@ -109,7 +109,7 @@ extension Link: MVMCoreViewProtocol {
|
|||||||
extension Link: MVMCoreUIMoleculeViewProtocol {
|
extension Link: MVMCoreUIMoleculeViewProtocol {
|
||||||
|
|
||||||
public func reset() {
|
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]?) {
|
public func setWithJSON(_ json: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
|
||||||
@ -120,7 +120,7 @@ extension Link: MVMCoreUIMoleculeViewProtocol {
|
|||||||
buttonDelegate = delegateObject?.buttonDelegate
|
buttonDelegate = delegateObject?.buttonDelegate
|
||||||
|
|
||||||
let color = unwrappedJson.stringForkey(KeyTextColor)
|
let color = unwrappedJson.stringForkey(KeyTextColor)
|
||||||
setTitleColor(UIColor.mfGet(forHex: color), for: .normal)
|
setTitleColor(.mfGet(forHex: color), for: .normal)
|
||||||
|
|
||||||
self.titleLabel?.numberOfLines = 0
|
self.titleLabel?.numberOfLines = 0
|
||||||
self.titleLabel?.lineBreakMode = .byWordWrapping;
|
self.titleLabel?.lineBreakMode = .byWordWrapping;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user