Fix for CXTDT-288387, removing line molecule from Tab
This commit is contained in:
parent
26da094aaf
commit
19ef7a3a26
@ -28,7 +28,6 @@ import VDSColorTokens
|
|||||||
|
|
||||||
let bottomScrollView = UIScrollView(frame: .zero)
|
let bottomScrollView = UIScrollView(frame: .zero)
|
||||||
let bottomContentView = View()
|
let bottomContentView = View()
|
||||||
let bottomLine = Line()
|
|
||||||
let selectionLine = View()
|
let selectionLine = View()
|
||||||
var selectionLineLeftConstraint: NSLayoutConstraint?
|
var selectionLineLeftConstraint: NSLayoutConstraint?
|
||||||
var selectionLineWidthConstraint: NSLayoutConstraint?
|
var selectionLineWidthConstraint: NSLayoutConstraint?
|
||||||
@ -68,7 +67,6 @@ import VDSColorTokens
|
|||||||
open override func setupView() {
|
open override func setupView() {
|
||||||
super.setupView()
|
super.setupView()
|
||||||
backgroundColor = VDSColor.backgroundPrimaryLight
|
backgroundColor = VDSColor.backgroundPrimaryLight
|
||||||
addSubview(bottomLine)
|
|
||||||
setupCollectionView()
|
setupCollectionView()
|
||||||
setupSelectionLine()
|
setupSelectionLine()
|
||||||
setupConstraints()
|
setupConstraints()
|
||||||
@ -116,10 +114,6 @@ import VDSColorTokens
|
|||||||
selectionLineWidthConstraint = selectionLine.widthAnchor.constraint(equalToConstant: minimumItemWidth)
|
selectionLineWidthConstraint = selectionLine.widthAnchor.constraint(equalToConstant: minimumItemWidth)
|
||||||
selectionLineWidthConstraint?.isActive = true
|
selectionLineWidthConstraint?.isActive = true
|
||||||
NSLayoutConstraint.constraintPinSubview(toSuperview: bottomContentView)
|
NSLayoutConstraint.constraintPinSubview(toSuperview: bottomContentView)
|
||||||
|
|
||||||
//bottom line
|
|
||||||
bottomLine.topAnchor.constraint(equalTo: bottomScrollView.bottomAnchor).isActive = true;
|
|
||||||
NSLayoutConstraint.constraintPinSubview(bottomLine, pinTop: false, pinBottom: true, pinLeft: true, pinRight: true)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|||||||
@ -22,7 +22,6 @@ 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