We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can't use any property in objective-c (eg: layout.animator), none of them are visible.
layout.animator
The text was updated successfully, but these errors were encountered:
Create Swift Extension and import into your objective-C class
@objc public extension AnimatedCollectionViewLayout{
@objc class func initWithPageAnimator() -> AnimatedCollectionViewLayout{ let layout = AnimatedCollectionViewLayout() layout.scrollDirection = .horizontal layout.animator = PageAttributesAnimator(scaleRate: 0.0) layout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) layout.minimumInteritemSpacing = 0 layout.minimumLineSpacing = 0 return layout } @objc class func initWithParallaxAnimator() -> AnimatedCollectionViewLayout{ let layout = AnimatedCollectionViewLayout() layout.scrollDirection = .horizontal layout.animator = ParallaxAttributesAnimator(speed: 0.2) layout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) layout.minimumInteritemSpacing = 0 layout.minimumLineSpacing = 0 return layout }
}
Just use like this
self.collectionView.collectionViewLayout = (AnimatedCollectionViewLayout*)[AnimatedCollectionViewLayout initWithPageAnimator]; }
Sorry, something went wrong.
No branches or pull requests
I can't use any property in objective-c (eg:
layout.animator
), none of them are visible.The text was updated successfully, but these errors were encountered: