Whenever the UIStackView
is shown or hidden, the hiding and revealing parts are animated. Is it possible to remove animation on it altogether. Like it just appears and disappears. Thank you.
the current hierarchy looks like this ==> UITableView
> table header UIView
> UIStackView
> UIView
with header label UILabel
. I'm trying to hide and show the table header.
code that I have tried so far...
headerView.frame.size.height = 0
- does not work since the contents of stack view is still shownstackView.isHidden = true
- still shows the blank header view which I want to be hiddenheaderLabel.isHidden = true
- same as above point, blank header view is still shown