Add line.

This commit is contained in:
Pfeil, Scott Robert 2020-06-02 10:59:40 -04:00
parent c5664d80e4
commit 0708b6eec0

View File

@ -12,6 +12,7 @@ import Foundation
public var model: TabBarModel
public var delegateObject: MVMCoreUIDelegateObject?
public let line = Line()
required public init(model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
guard let model = model as? TabBarModel else {
@ -19,8 +20,11 @@ import Foundation
}
self.model = model
super.init(frame: .zero)
translatesAutoresizingMaskIntoConstraints = false
delegate = self
translatesAutoresizingMaskIntoConstraints = false
line.addLine(to: self, edge: .top, useMargin: false)
line.backgroundColor = .mvmCoolGray3
set(with: model, delegateObject, additionalData)
}