mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Merge pull request #3603 from vector-im/reduce_warnings
Reduce Xcode warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user