Ramotion/expanding-collection

Custom header height

Closed this issue · 1 comments

Even though one should be able to define a custom header height in the ExpandingTableViewController, it seems like this value doesn't reach the TransitionDriver class. In the openBackViewConfigureConstraints function there is still the hard coded standard value '236' for the header height.

Thank you for the quick fix!
Since you made it clear in the comment above the headerHeight variable, that it has to be set before the animation, someone should update the project readme. In the section "Transition animation" it says you can set the value in the viewDidLoad method of your subclass which leads to the wrong behavior.