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 IGListCollectionView #851

Closed
2 tasks done
raviatri opened this issue Jul 11, 2017 · 4 comments
Closed
2 tasks done

Use of undeclared type IGListCollectionView #851

raviatri opened this issue Jul 11, 2017 · 4 comments
Labels

Comments

@raviatri
Copy link

raviatri commented Jul 11, 2017

#850 # New issue checklist

General information

  • IGListKit version:
  • iOS version(s):
  • CocoaPods/Carthage version:
  • Xcode version:
  • Devices/Simulators affected:
  • Reproducible in the demo project? (Yes/No):
  • Related issues:

Debug information

# Please include debug logs using the following lldb command:
po [IGListDebugger dump]

Hey i am using Xcode 8.3.2 and using swift 3
i installed the pod "pod 'IGListKit', :git => 'https://github.com/Instagram/IGListKit.git', :branch => 'master'"
and import IGListKit successfully.
But when i am going to define a IGListCollectionView it gives me this error"Use of undeclared type IGListCollectionView"

let collectionView: IGListCollectionView = {
        // 2
        let view = IGListCollectionView(frame: CGRect.zero, collectionViewLayout: UICollectionViewFlowLayout())
        // 3
        view.backgroundColor = UIColor.black
        return view
    }()

Is i missing something? please help me out of this.

@rnystrom
Copy link
Contributor

@raviatri are you using IGListKit 3.0? If so, IGListCollectionView was removed. Context in #409 and 2284ce3

@raviatri
Copy link
Author

Actually i am't confirm its 3.O, i installed using
pod "pod 'IGListKit', :git => 'https://github.com/Instagram/IGListKit.git', :branch => 'master'"

which import latest one right?

@rnystrom
Copy link
Contributor

@raviatri yup using that will put you on the tip of latest IGListKit development which is past 3.0.0. So in your branch IGListCollectionView doesn't exist anymore, you can just use UICollectionView instead.

@raviatri
Copy link
Author

Thanks @rnystrom for the help. I got your point.

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

No branches or pull requests

2 participants