We are facing an issue where popover size is getting changed when a UIActionSheet style of alertController is used inside a popover. This is happening after we upgraded our code base iOS13
Sample Code: https://github.com/Sundeep-manne/UIPopover.git
We are facing an issue where popover size is getting changed when a UIActionSheet style of alertController is used inside a popover. This is happening after we upgraded our code base iOS13
Sample Code: https://github.com/Sundeep-manne/UIPopover.git
Copyright © 2021 Jogjafile Inc.
I think this is Apple bug. I experience it on Xcode 11.1, but on Xcode 11.2.1 when displaying the ActionSheet I'm getting the crash:
So the answer is: to use ActionSheet on iPad you need to provide sourceView and sourceRect in popoverPresentationController of your UIAlertController. More info: https://medium.com/@nickmeehan/actionsheet-popover-on-ipad-in-swift-5768dfa82094
Apple docs:
https://developer.apple.com/documentation/uikit/windows_and_screens/getting_the_user_s_attention_with_alerts_and_action_sheets