Add line.
This commit is contained in:
parent
c5664d80e4
commit
0708b6eec0
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user