move bottom line logic
This commit is contained in:
parent
62abf18662
commit
3a5e4bf779
@ -59,7 +59,6 @@ import UIKit
|
||||
super.reset()
|
||||
selectedIndex = 0
|
||||
paddingBeforeFirstTab = true
|
||||
bottomLine.setStyle(.none)
|
||||
}
|
||||
|
||||
open override func updateView(_ size: CGFloat) {
|
||||
@ -69,7 +68,6 @@ import UIKit
|
||||
open override func setupView() {
|
||||
super.setupView()
|
||||
backgroundColor = .white
|
||||
bottomLine.setStyle(.none)
|
||||
addSubview(bottomLine)
|
||||
setupCollectionView()
|
||||
setupSelectionLine()
|
||||
|
||||
@ -22,6 +22,7 @@ import UIKit
|
||||
tabs.paddingBeforeFirstTab = false
|
||||
tabs.translatesAutoresizingMaskIntoConstraints = false
|
||||
tabs.delegate = self
|
||||
tabs.bottomLine.setStyle(.none)
|
||||
contentView.addSubview(tabs)
|
||||
|
||||
NSLayoutConstraint.activate(Array(NSLayoutConstraint.pinView(toSuperview: tabs, useMargins: true).values))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user