ImageViewer icon indicating copy to clipboard operation
ImageViewer copied to clipboard

[BUG] Video controls under safe zone on new iPhones

Open Ludotrico opened this issue 3 years ago • 3 comments

Devices that do not have home buttons instead have a greater safe zone at the bottom of the screen. When playing a video, this safe zone is ignored and the video controls are too low to interact with.

Here is a picture of the issue.

Ludotrico avatar Jan 19 '21 23:01 Ludotrico

I am also experiencing this

ionut-lucaci avatar Jan 22 '21 17:01 ionut-lucaci

Please let me know if you have seen this @kellyroach @jfahrenkrug @woko666 @RuiAAPeres

Ludotrico avatar Jan 22 '21 21:01 Ludotrico

I've found a temporary workaround. footerView avoids safe area, so you just need to add a dummy view.

The default layout has a 25pt margin at the bottom. https://github.com/Krisiacik/ImageViewer/blob/6.0.0/ImageViewer/Source/GalleryViewController.swift#L45 If you don't need it, set the footerViewLayout to 0.

let viewController = GalleryViewController(
  startIndex: index,
  itemsDataSource: datSource,
  configuration: [.footerViewLayout(.center(.zero))]
)
viewController.footerView = .init()
presentImageGallery(viewController)

hanawat avatar Feb 12 '22 09:02 hanawat