Remove code used before iOS 11.

This commit is contained in:
SBiOSoftWhare
2020-09-01 14:19:21 +02:00
parent 44c69575cb
commit 2e77fc3a6f
9 changed files with 75 additions and 300 deletions
@@ -100,11 +100,9 @@ static const CGFloat kInterItemsSpaceHorizontal = 8.0;
[super layoutSubviews];
CGFloat _leftInset = 0.0, _rightInset = 0.0;
if (@available(iOS 11, *))
{
_leftInset += self.safeAreaInsets.left;
_rightInset += self.safeAreaInsets.right;
}
_leftInset += self.safeAreaInsets.left;
_rightInset += self.safeAreaInsets.right;
CGFloat leftMargin = MAX(_leftInset, _minimumLeftInset);
CGFloat rightMargin = MAX(_rightInset, _minimumRightInset);