Changes to set the line style after initialization

This commit is contained in:
Sumanth Nadigadda 2022-05-27 20:25:47 +05:30
parent eeb6573e72
commit 7fbac6b8dc
2 changed files with 3 additions and 1 deletions

View File

@ -49,16 +49,19 @@ import UIKit
public init() {
super.init(frame: .zero)
model = LineModel(type: .secondary)
setStyle(.secondary)
}
public override init(frame: CGRect) {
super.init(frame: frame)
model = LineModel(type: .secondary)
setStyle(.secondary)
}
public required init?(coder: NSCoder) {
super.init(coder: coder)
model = LineModel(type: .secondary)
setStyle(.secondary)
}
public required init(model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {

View File

@ -68,7 +68,6 @@ import VDSColorTokens
open override func setupView() {
super.setupView()
backgroundColor = VDSColor.backgroundPrimaryLight
bottomLine.setStyle(.secondary)
addSubview(bottomLine)
setupCollectionView()
setupSelectionLine()