In MemoryViewController I am setting up the collectionView layout in setup(), but this occurs before the view's insets have been set, including the required spaces for the navigationController. Because this setup happens prior to insets being finalized, the collectionView gets cut off at the bottom. To adjust for that I've an override for viewSafeAreaInsetsDidChange where I set the new layout. It working as expected. Could use some help figuring this out.
Screen recording shows how the incorrect deck layout appears with the current code