matching change in label

This commit is contained in:
Kevin G Christiano 2020-06-08 17:10:54 -04:00
parent da5b0b4c29
commit ee029aa103

View File

@ -8,11 +8,18 @@
import Foundation import Foundation
@objcMembers open class Tag: View { @objcMembers open class Tag: View {
//--------------------------------------------------
// MARK: - Outlets
//--------------------------------------------------
public let label = Label.createLabelRegularBodySmall(true) public let label = Label(fontStyle: .RegularBodySmall)
//--------------------------------------------------
// MARK: - MVMCoreViewProtocol // MARK: - MVMCoreViewProtocol
//--------------------------------------------------
open override func setupView() { open override func setupView() {
super.setupView() super.setupView()
layer.borderColor = UIColor.mvmCoolGray6.cgColor layer.borderColor = UIColor.mvmCoolGray6.cgColor
@ -22,9 +29,10 @@ import Foundation
NSLayoutConstraint.constraintPinSubview(label, pinTop: true, topConstant: 13, pinBottom: true, bottomConstant: 13, pinLeft: true, leftConstant: 15, pinRight: true, rightConstant: 15) NSLayoutConstraint.constraintPinSubview(label, pinTop: true, topConstant: 13, pinBottom: true, bottomConstant: 13, pinLeft: true, leftConstant: 15, pinRight: true, rightConstant: 15)
} }
// MARK: - MoleculeViewProtocol
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) { open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
guard let model = model as? TagModel else { return } guard let model = model as? TagModel else { return }
label.set(with: model.label, delegateObject, additionalData) label.set(with: model.label, delegateObject, additionalData)
} }
@ -36,6 +44,6 @@ import Foundation
open override func reset() { open override func reset() {
super.reset() super.reset()
label.reset() label.reset()
label.styleRegularBodySmall(true) label.setFontStyle(.RegularBodySmall)
} }
} }