iOS: do not show indication in slider
This commit is contained in:
parent
91b1a3c24c
commit
f8b983b8d2
@ -59,7 +59,6 @@ - (instancetype)initWithContext:(DoricContext *)doricContext {
|
||||
- (UICollectionView *)build {
|
||||
UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
|
||||
[flowLayout setScrollDirection:UICollectionViewScrollDirectionHorizontal];
|
||||
|
||||
return [[[DoricSliderView alloc] initWithFrame:CGRectZero
|
||||
collectionViewLayout:flowLayout]
|
||||
also:^(UICollectionView *it) {
|
||||
@ -67,6 +66,8 @@ - (UICollectionView *)build {
|
||||
it.pagingEnabled = YES;
|
||||
it.delegate = self;
|
||||
it.dataSource = self;
|
||||
it.showsHorizontalScrollIndicator = NO;
|
||||
it.showsVerticalScrollIndicator = NO;
|
||||
[it registerClass:[DoricSliderViewCell class] forCellWithReuseIdentifier:@"doricCell"];
|
||||
if (@available(iOS 11, *)) {
|
||||
it.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
||||
|
Reference in New Issue
Block a user