Giter Site home page Giter Site logo

Comments (4)

HeathWang avatar HeathWang commented on May 14, 2024

测试时没测过横向滚动问题,可以把collectionView初始化和配置贴出来吗?

from hwpanmodal.

WonderJeffy avatar WonderJeffy commented on May 14, 2024

测试时没测过横向滚动问题,可以把collectionView初始化和配置贴出来吗?

复现场景是在 一个已经 panmodal 弹出的竖向滚动 VC 上再弹出一个横向滚动的 HWPanModalContentView

collectionView 如下:

- (UICollectionView *)collectionView {
    if (!_collectionView) {
        UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
        layout.minimumLineSpacing      = 10;
        layout.minimumInteritemSpacing = 10;
        layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
        layout.itemSize        = CGSizeMake(100, 100);
        layout.sectionInset    = UIEdgeInsetsMake(0, 20, 0, 20);
        
        _collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 100) collectionViewLayout:layout];
        _collectionView.showsHorizontalScrollIndicator = NO;
        [_collectionView registerClass:[XYCollectionViewCell class] forCellWithReuseIdentifier:@"XYCollectionViewCell"];
        _collectionView.delegate = self;
        _collectionView.dataSource = self;
    }
    return _collectionView;
}

from hwpanmodal.

HeathWang avatar HeathWang commented on May 14, 2024

无法复现你的问题,我在master分支加了一个新类HWCollectionPanModalView
你可以拉最新的代码看看,如何复现,把修改贴出来,谢谢。

已复现,我看看怎么修改

from hwpanmodal.

HeathWang avatar HeathWang commented on May 14, 2024

@WonderJeffy
当CollectionView横向滚动时,和该框架原有交互设计下滑scrollView dismiss视图相冲突。

你可以重写该方法,返回nil:

- (UIScrollView *)panScrollable {
    return nil;
}

有任何疑问或者好的建议,欢迎提出。

from hwpanmodal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.