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