Fix. Add more space for label

This commit is contained in:
Igor Kislyuk 2017-03-30 17:53:14 +03:00
parent 8a21e29e89
commit 7473ff0b1d
2 changed files with 3 additions and 3 deletions

View File

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

View File

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