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

Bug: state of self.isExpanded is incorrect on startup #16

Closed
224XS opened this issue Oct 27, 2020 · 1 comment
Closed

Bug: state of self.isExpanded is incorrect on startup #16

224XS opened this issue Oct 27, 2020 · 1 comment

Comments

@224XS
Copy link

224XS commented Oct 27, 2020

Nice package and it mostly works fine but,
Using this package causes the following

  1. the collectionView starts as open despite calling view.collapse in ViewWillAppear
  2. user needs to tap a header twice (only the first time) to collapse the collection. After the first collapse, the sections accordion appropriately with a single tap.

Finding: in calling the method "collapse" the first time, when app opens, the internal flag "isExpanded" is set to false despite the collection being defaulted to fully expanded.

I can not find where you initialize your isExpanded var, but you should probably have an optional init which passes the desired state.

@VadzimMarozau
Copy link
Member

isExpanded parameter is added to init
https://github.com/touchlane/CampcotCollectionView/releases/tag/0.0.8

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

No branches or pull requests

2 participants