AnimatedCollectionViewLayout
AnimatedCollectionViewLayout copied to clipboard
Importing this library has no effect
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 }()