Closed skuske closed 4 years ago
If the picker is presented in landscape view, the X position of the cancel button should pay attention to the safeAreaInsets on iPhone X, XS and XR devices, otherwise the cancel button is cut off on the left:
safeAreaInsets
UIEdgeInsets safeInsets = UIEdgeInsetsZero; safeInsets = ([UIApplication sharedApplication].delegate).window.safeAreaInsets; CGRect rectFrame=customStyle.cancelBtnFrame; rectFrame.origin.x+=safeInsets.left; customStyle.cancelBtnFrame=rectFrame;
Maybe that should be implemented by default ... :o)
This problem has been solved. Please update to version 2.4.2. Thanks! :o)
If the picker is presented in landscape view, the X position of the cancel button should pay attention to the
safeAreaInsets
on iPhone X, XS and XR devices, otherwise the cancel button is cut off on the left:Maybe that should be implemented by default ... :o)