Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing this library has no effect #66

Open
yangweiyi opened this issue Aug 17, 2021 · 0 comments
Open

Importing this library has no effect #66

yangweiyi opened this issue Aug 17, 2021 · 0 comments

Comments

@yangweiyi
Copy link

ParallaxAttributesAnimator has no effect why ?

lazy var baseCollectionView: UICollectionView = {
let layout = AnimatedCollectionViewLayout()
layout.animator = ParallaxAttributesAnimator()
layout.itemSize = CGSize(width: UIScreen.main.bounds.width, height: 200)
layout.minimumLineSpacing = 0
layout.minimumInteritemSpacing = 0
layout.scrollDirection = .horizontal
let baseView = UICollectionView(frame: CGRect(x: 0, y: 90, width: UIScreen.main.bounds.width, height: 200), collectionViewLayout: layout)
baseView.isPagingEnabled = true
baseView.delegate = self
baseView.dataSource = self
baseView.collectionViewLayout = layout
baseView.register(BannerCollectionViewCell.self, forCellWithReuseIdentifier: "BannerCollectionViewCell")
return baseView
}()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant