Merge pull request #3603 from vector-im/reduce_warnings

Reduce Xcode warnings
This commit is contained in:
SBiOSoftWhare
2020-09-04 13:13:54 +02:00
committed by GitHub
40 changed files with 153 additions and 1401 deletions
+1 -8
View File
@@ -399,14 +399,7 @@
CGSize fittingSize = UILayoutFittingCompressedSize;
CGFloat tableViewWidth = CGRectGetWidth(tableView.frame);
CGFloat safeAreaWidth;
if (@available(iOS 11.0, *)) {
// Take safe area into account
safeAreaWidth = MAX(tableView.safeAreaInsets.left, tableView.safeAreaInsets.right);
} else {
safeAreaWidth = 0;
}
CGFloat safeAreaWidth = MAX(tableView.safeAreaInsets.left, tableView.safeAreaInsets.right);
fittingSize.width = tableViewWidth - safeAreaWidth;