Fix UI bug.

This commit is contained in:
pauluhn 2017-08-17 18:09:58 -05:00
parent 85bed4548b
commit 1b6a38609e
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ open class Segmentio: UIView {
bottomSeparatorView = UIView(frame: CGRect.zero)
setupConstraintsForSeparatorView(
separatorView: bottomSeparatorView,
originY: frame.maxY - height
originY: bounds.maxY - height
)
}
}
@ -271,7 +271,7 @@ open class Segmentio: UIView {
item: separatorView,
attribute: .top,
relatedBy: .equal,
toItem: superview,
toItem: self,
attribute: .top,
multiplier: 1,
constant: originY