Fix for CXTDT-288387, removing line molecule from Tab

This commit is contained in:
Sumanth Nadigadda 2022-05-27 00:18:18 +05:30
parent 26da094aaf
commit 19ef7a3a26
2 changed files with 0 additions and 7 deletions

View File

@ -28,7 +28,6 @@ import VDSColorTokens
let bottomScrollView = UIScrollView(frame: .zero)
let bottomContentView = View()
let bottomLine = Line()
let selectionLine = View()
var selectionLineLeftConstraint: NSLayoutConstraint?
var selectionLineWidthConstraint: NSLayoutConstraint?
@ -68,7 +67,6 @@ import VDSColorTokens
open override func setupView() {
super.setupView()
backgroundColor = VDSColor.backgroundPrimaryLight
addSubview(bottomLine)
setupCollectionView()
setupSelectionLine()
setupConstraints()
@ -116,10 +114,6 @@ import VDSColorTokens
selectionLineWidthConstraint = selectionLine.widthAnchor.constraint(equalToConstant: minimumItemWidth)
selectionLineWidthConstraint?.isActive = true
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)
}
//-------------------------------------------------

View File

@ -22,7 +22,6 @@ 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))