DroidsOnRoids / SwiftCarousel

Lightweight, written natively in Swift, circular UIScrollView.
http://www.thedroidsonroids.com/blog/ios/circular-scroll-view-swiftcarousel/
MIT License
144 stars 43 forks source link

Wrong offset in UIStackView #5

Closed aocenas closed 8 years ago

aocenas commented 8 years ago

I am using this inside a view with autolayout, which si inside a stack view, and this messes up the offset calculations, mostly because of changing frame which is for some layout cycles {0, 0}. I fixed it for this (my) particular use case, but I did not test other use cases so I am not sure if I did not mess something up. If you want to take a look at those changes I can make a PR for them.

sunshinejr commented 8 years ago

Yea, sure, you can do PR and I will test that.

sunshinejr commented 8 years ago

Closing for now since your PR is merged.