README and documentationIGListKit version: 3.2.0Hello, is there a way to invalidate ListCollectionViewLayout after device rotation? It seems that when I use this layout and rotate my device, sizeForItem is not triggered in section controllers. It is working fine when switching back to UICollectionViewFlowLayout. Any advice would be appreciated. Thanks!
Hey @jurex !
You should be able to do this in your view controller. See Apple's UIViewController docs and look for the traitCollectionDidChange callback.
Thanks @jessesquires 馃憤
I've ended up with something like this:
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
adapter.reloadData(completion: nil)
}
It's not probably the most effective solution, but it's working. Thnx again for great library鉁岋笍
Most helpful comment
Thanks @jessesquires 馃憤
I've ended up with something like this:
It's not probably the most effective solution, but it's working. Thnx again for great library鉁岋笍