Skip to content

Commit

Permalink
Remove the redundant __IPHONE_11_0 (#1351)
Browse files Browse the repository at this point in the history
Summary:
## Changes in this pull request

Remove the redundant __IPHONE_11_0, because the minimum requirement is Xcode 9.0+ now.

### Checklist

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Pull Request resolved: #1351

Differential Revision: D17200815

Pulled By: lorixx

fbshipit-source-id: 25705856cf26d5c215ed956802ab1022c98cbca0
  • Loading branch information
hanton authored and facebook-github-bot committed Sep 5, 2019
1 parent 93da085 commit 628c547
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/Internal/UIScrollView+IGListKit.m
Expand Up @@ -11,15 +11,11 @@ @implementation UIScrollView (IGListKit)

- (UIEdgeInsets) ig_contentInset
{
#ifdef __IPHONE_11_0
if (@available(iOS 11.0, tvOS 11.0, *)) {
return self.adjustedContentInset;
} else {
return self.contentInset;
}
#else
return self.contentInset;
#endif
}

@end

0 comments on commit 628c547

Please sign in to comment.