You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the sheet inside a popover, the background view has a wrong frame. Looking into viewDidLayoutSubviews, the view of the ImagePickerSheetController is in fact wrong (as is the enclosing popoverView). To fix this I added two lines of code inside viewDidLayoutSubviews:
...
let sheetSize = CGSize(width: view.bounds.width, height: sheetHeight)
if let _ = popoverPresentationController {
backgroundView.frame = CGRect(origin: .zero, size: sheetSize)
}
...
The text was updated successfully, but these errors were encountered:
When I use the sheet inside a popover, the background view has a wrong frame. Looking into viewDidLayoutSubviews, the view of the ImagePickerSheetController is in fact wrong (as is the enclosing popoverView). To fix this I added two lines of code inside viewDidLayoutSubviews:
...
let sheetSize = CGSize(width: view.bounds.width, height: sheetHeight)
...
The text was updated successfully, but these errors were encountered: