mischa-hildebrand / AlignedCollectionViewFlowLayout

A collection view layout that gives you control over the horizontal and vertical alignment of the cells.
MIT License
1.27k stars 203 forks source link

Pod updated to 1.1.1? #3

Closed chadbag closed 6 years ago

chadbag commented 6 years ago

When will the pod be updated? The pod still has the issue of the init being "internal" and therefore inaccessible to users of the pod.

mischa-hildebrand commented 6 years ago

I have updated the pod as well. Maybe it took some time to process. Can you please check again?

In the (parsed) documentation the initializer is visible already which means it must be public: http://cocoadocs.org/docsets/AlignedCollectionViewFlowLayout/1.1.1/Classes/AlignedCollectionViewFlowLayout.html

chadbag commented 6 years ago

My pod file says

pod 'AlignedCollectionViewFlowLayout'

And I get 1.1.0 with the problem on init

"initializer is inaccessible due to 'internal' protection level"

or something like that.

I am trying another "pod update" to see if that helps.

Btw, this is a really nice effort!

mischa-hildebrand commented 6 years ago

Thanks! I've just created a brand new Xcode project and added a podfile with pod "AlignedCollectionViewFlowLayout" as its only pod and ran pod install. Works for me.

It installs version 1.1.1 with the public initializer.

Please make sure you run pod update and not pod install.

chadbag commented 6 years ago

I got it working now. I thought I had done "pod update" at first but I must have done "pod install" out of habit. When I add a new pod I try and remember the update...

mischa-hildebrand commented 6 years ago

Awesome. I'll close this issue.

(Generally, you don't need to run pod update when you add a new pod. In that case pod install is sufficient. You only need pod update in case you have an older version of a pod installed and want to update that pod to a higher version.)