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

Use of undeclared type 'MSCollectionViewPeekingBehavior' #64

Closed
ihsaan-ullah opened this issue May 15, 2020 · 4 comments
Closed

Use of undeclared type 'MSCollectionViewPeekingBehavior' #64

ihsaan-ullah opened this issue May 15, 2020 · 4 comments

Comments

@ihsaan-ullah
Copy link

After installing the pod pod 'MSPeekCollectionViewDelegateImplementation' and using it in a ViewController. I get this error on declaration of behaviour variable

var behavior: MSCollectionViewPeekingBehavior!

Error: Use of undeclared type 'MSCollectionViewPeekingBehavior'

@MaherKSantina
Copy link
Owner

Hello @ihsanullah2131
Thank you for contributing to this repo by raising this issue! I need you to check a couple of things to see what the problem is

  1. We need to make sure that you have the latest pod version because this class doesn't exist on previous versions of the pod. To do that you can check the Podfile.lock file and see which version of the pod is installed
  2. We need to make sure that you included the import header:
import MSPeekCollectionViewDelegateImplementation

@ihsaan-ullah
Copy link
Author

  1. We need to make sure that you have the latest pod version because this class doesn't exist on previous versions of the pod. To do that you can check the Podfile.lock file and see which version of the pod is installed

Version is 2.0.0

  1. We need to make sure that you included the import header:

Yes import is correct

@MaherKSantina
Copy link
Owner

So version 2.0.0 of the pod is not the latest one, you need to update the pod version to 3.1.1 to for it to work

@MaherKSantina
Copy link
Owner

@ihsanullah2131 I'll close this. Feel free to open it if the issue is still there!

Have a great day! 🙏

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

No branches or pull requests

2 participants