mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-16 22:08:25 +00:00
Summary: - Update CocoaPods + Gems - Update SwiftLint version - Fix lint errors - Fix `pod_setup.sh` script, move to `scripts/` (should now be run from root dir) - Run `pod_setup.sh` Closes https://github.com/Instagram/IGListKit/pull/1038 Differential Revision: D6602297 Pulled By: rnystrom fbshipit-source-id: 1bf69611e041903cf982fe7d9a95197729e44d94
27 lines
636 B
Objective-C
27 lines
636 B
Objective-C
/**
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import "UIScrollView+IGListKit.h"
|
|
|
|
@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
|