AnimatedCollectionViewLayout icon indicating copy to clipboard operation
AnimatedCollectionViewLayout copied to clipboard

Importing this library has no effect

Open yangweiyi opened this issue 3 years ago • 0 comments

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

yangweiyi avatar Aug 17 '21 13:08 yangweiyi