Fix. Add more space for label
This commit is contained in:
parent
8a21e29e89
commit
7473ff0b1d
|
|
@ -191,7 +191,7 @@ class SegmentioCell: UICollectionViewCell {
|
|||
attribute: .trailing,
|
||||
relatedBy: .equal,
|
||||
toItem: containerView,
|
||||
attribute: .trailingMargin,
|
||||
attribute: .trailing, //changed from .trailingMargin. remove std margin 8pt
|
||||
multiplier: 1.0,
|
||||
constant: 0
|
||||
)
|
||||
|
|
@ -200,7 +200,7 @@ class SegmentioCell: UICollectionViewCell {
|
|||
attribute: .leading,
|
||||
relatedBy: .equal,
|
||||
toItem: containerView,
|
||||
attribute: .leadingMargin,
|
||||
attribute: .leading, //changed from .leadingMargin. remove std margin 8pt
|
||||
multiplier: 1.0,
|
||||
constant: 0
|
||||
)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ final class SegmentioCellWithLabel: SegmentioCell {
|
|||
// main constraints
|
||||
|
||||
let segmentTitleLabelHorizontConstraint = NSLayoutConstraint.constraints(
|
||||
withVisualFormat: "|-[containerView]-|",
|
||||
withVisualFormat: "|[containerView]|", //changed from |-[containerView]-|. remove standard space
|
||||
options: [.alignAllCenterX],
|
||||
metrics: nil,
|
||||
views: views
|
||||
|
|
|
|||
Loading…
Reference in New Issue