priteshrnandgaonkar / CardsStack

An awesome set of cards at your disposal ✌️ ⚡️
MIT License
100 stars 10 forks source link

Scrolling issue #17

Closed uzairahmad98 closed 7 years ago

uzairahmad98 commented 7 years ago

Hello, I recently download your example project. when I embed my view controller in navigation controller it disable the scrolling. So, if i have 30 cards and I embed my controller in navigation controller it disable scrolling in collection view. How to fix it?

Please help me.

priteshrnandgaonkar commented 7 years ago

Yes, I will look into it.

uzairahmad98 commented 7 years ago

Thanks. so when should i expect the update?

priteshrnandgaonkar commented 7 years ago

You need to add automaticallyAdjustsScrollViewInsets = false in the viewDidLoad of the viewcontroller and it will work fine. I will update the example with this change. Thanks for raising the issue.

priteshrnandgaonkar commented 7 years ago

@uzairahmad98 did the change suggested worked? If not then reopen the issue.

priteshrnandgaonkar commented 7 years ago

For general understanding, this issue was related to the side effect of adding NavigationController, navigationcontroller changed the inset of the collectionview which lead to this bug. Have a look at this stackoverflow issue, http://stackoverflow.com/questions/18924431/ios-7-navigationcontroller-is-setting-the-contentinset-and-contentoffset-of-m