Skip to content

Commit 276178c

Browse files
committed
Backwards compatibility with Xcode 8
1 parent a7e83fd commit 276178c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MGSwipeTableCell/MGSwipeTableCell.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,16 @@ -(void) fixRegionAndAccesoryViews
682682
}
683683

684684
-(UIEdgeInsets) getSafeInsets {
685+
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
685686
if (@available(iOS 11, *)) {
686687
return self.safeAreaInsets;
687688
}
688689
else {
689690
return UIEdgeInsetsZero;
690691
}
692+
#else
693+
return UIEdgeInsetsZero;
694+
#endif
691695
}
692696

693697
-(UIView *) swipeContentView

0 commit comments

Comments
 (0)