0

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.

GitHub Link to Code

Screen recording shows how the incorrect deck layout appears with the current code

Screen Recording Link

2
  • I didn't catch that, explain more please, what do you want to happen. Commented Apr 5 at 11:04
  • Tested your code on iOS 18.2, didn't reproduce the navigation bar issue. Could you please clarify conditions in more detail including the OS version? Commented Jun 9 at 14:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.