Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Forbid adjustment of safeArea by system for cycle slider compon…
Browse files Browse the repository at this point in the history
…ent. (#1780)
  • Loading branch information
wqyfavor authored and wqyfavor committed Nov 20, 2018
1 parent 94049e9 commit b56ce0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ - (id)initWithFrame:(CGRect)frame
_currentIndex = 0;
_itemViews = [[NSMutableArray alloc] init];
_scrollView = [[WXRecycleSliderScrollView alloc] init];
if (@available(iOS 11.0, *)) {
_scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
_scrollView.backgroundColor = [UIColor clearColor];
_scrollView.delegate = self;
_scrollView.showsHorizontalScrollIndicator = NO;
Expand Down

0 comments on commit b56ce0a

Please sign in to comment.