Problem with UIPresentationController

I am trying to make a pop over form the bottom of screen using UIPresentationController, so I followed this guide here : I did the exact same thing, I only changed the size and y position of the frame. The pop up consist of buttons that open the share sheet , but for some reason when I open the sheet then click “save to files”, the “shave to files” view shows up and when I hit cancel my pop over goes full screen for a moment then changes to my custom size. I tried to debug the app and found out that containerViewWillLayoutSubviews() doesn’t get called untill the “save to file” view is dismissed. I don’t know if this is a bug or am I missing something . Does anyone have an idea on how to solve this. Thank you

@ron.kliffer Can you please help with this when you get a chance? Thank you - much appreciated! :]

1 Like