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

View File

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