IDMPhotoBrowser
IDMPhotoBrowser copied to clipboard
iPhone X support
When presenting the IDMPhotoBrowser
, the "Done" button is obscured by the sensor housing notch:
The top half of the "Done" button doesn't respond to touch events.
I just checked if the device is iphone X or not set the top inset of done button as shown below:
browser.doneButtonTopInset = 50.0f;
This will shift the done button little below.

@PrakashMaharjan Right, but ideally the IDMPhotoBrowser
would respect the safe insets property
I went with this for now…
if (@available(iOS 11.0, *)) {
browser.doneButtonTopInset = MAX(browser.doneButtonTopInset, viewController.view.safeAreaInsets.top);
}
A more robust improvement that used the auto-layout constraints would be preferred.
Isn't this closed by https://github.com/thiagoperes/IDMPhotoBrowser/pull/282
is this solved yet?