move bottom line logic

This commit is contained in:
Pfeil, Scott Robert 2020-08-18 10:41:19 -04:00
parent 62abf18662
commit 3a5e4bf779
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

@ -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))