Skip to content

Importing this library has no effect #66

@yangweiyi

Description

@yangweiyi

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
}()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions