switch modification
This commit is contained in:
parent
ddd8eb9d45
commit
9f5600a0f3
@ -84,7 +84,8 @@ import UIKit
|
||||
}
|
||||
|
||||
func setupConstraints() {
|
||||
NSLayoutConstraint.constraintPinLeftSubview(label, leftConstant: 0)
|
||||
NSLayoutConstraint.constraintPinLeftSubview(label, leftConstant: 0)
|
||||
NSLayoutConstraint.constraintPinSubview(mvmSwitch, pinCenterX: false, pinCenterY: true)
|
||||
let dict = NSLayoutConstraint.constraintPinSubview(mvmSwitch, pinTop: true, topConstant: 0, topRelation: .greaterThanOrEqual, pinBottom: true, bottomConstant: 0, bottomRelation: .greaterThanOrEqual, pinLeft: false, leftConstant: 0, leftRelation: .equal, pinRight: true, rightConstant: 0, rightRelation: .greaterThanOrEqual)
|
||||
topConstraint_Switch = dict?[ConstraintTop] as? NSLayoutConstraint
|
||||
NSLayoutConstraint.constraintPinTopSubview(label, topConstant: 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user