I'm implementing some UICollectionViewCell classes to populate a normal UICollectionView embedded in a NavigationController.
In this cell class, I need to get the NavigationBar height of the collectionView's navigationController that's going to present this cell.
My issue is that I need this data upfront, on the cells creation process and not afterwards.
If it was after I'd simply cast the cell inside the cellForItemAt and fill some property there , but I need this upfront.
What's the best way to approach this?
This would be the same as a regular tableViewCell How would you access the NavigationController.navigationBar height inside the cell class?
I know that mostly the height is 44 but I don't want to force this value, because it may change from devices, and if I access that property the value will always be correct and errorless.
This isn't the regular call of the navigationController.navigationBar.frame.height
because inside the cell class there isn't a navigationController
Thanks for helping.