CR: simplify scroll check

This commit is contained in:
Michael Kirk 2018-11-15 10:29:49 -06:00
parent a60dc2bfe7
commit a27b04613d

View file

@ -159,13 +159,7 @@ private class CaptionView: UIView {
// Enable/disable scrolling depending on wether we've clipped
// content in `intrinsicContentSize`
if doesContentNeedScroll {
if !isScrollEnabled {
isScrollEnabled = true
}
} else if isScrollEnabled {
isScrollEnabled = false
}
isScrollEnabled = doesContentNeedScroll
}
override var intrinsicContentSize: CGSize {