-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Setting hidden to true doesn't hide row #307
Comments
The tags do match. e.g. first = first. There was a typo in my example which I just corrected. |
I also updated to 1.4.1 and it still doesn't work. |
I created a simple test project to show this issue. This is definitely a bug:
|
It works IF I change the code to:
I don't see any information in the documentation that says that evaluateHidden() needs to be called. |
Also, even though my bug workaround hides the rows, the height of the tableview does not shrink. When hiding rows, I need the table view to adjust it's size so that other views onscreen can claim that space. I tried calling sizeToFit() and setting the tableview frame to contentSize.height but neither worked. I think the row height for hidden cells needs to be set to zero for the tableview to change it's height. This worked fine in XLForm but does not work in Eureka. I'm beginning to regret switching to Eureka. |
@rlaferla Here you have the documentation for the In regards of the table view height issue, whenever you hide a row, the row is completely removed from the table view so I don't think changing the row height is a good approach. If you want to change the table view height i suggest you to use interface builder to create the view controller adding corresponding "height" constraint and updating its constant accordingly when rows are removed. Take into account that rows are removed with animation so it may take some time to get the proper tableView contentSize value. I'm gonna close the issue since for now since It's seems not directly related with eureka. |
I think this should be mentioned in the readme under the section: "How to dynamically hide and show rows (or sections)" It's not obvious. |
Got stucked with the same issue. Can we make it obvious to the documentation? |
I think this should also be clearly mentioned in the main documentation. I might not be the only one getting stuck with this same issue. |
I am experiencing a similar issue with a MultivaluedSection where I am trying to hide the add button in the EDIT: changed it so it calls the
And then it started working as expected. No idea why this is necessary though. The insert row provider block is already executing on the main thread when it is called. |
I got stuck with the same problem. Maybe it would indeed be nice to put it in the main part of the documentation. |
Done! |
When I set up my row, I can toggle it's visibility BUT when I later try to change the visibility, it does not work.
then in another method:
I am using 1.3.1 via CocoaPods.
The text was updated successfully, but these errors were encountered: