Open filom opened 6 years ago
How are you presenting it?
Here is my code to present the color picker:
let drColor = DRColorPickerColor(color: c)
guard let colorPicker = DRColorPickerViewController.newColorPicker(with: drColor) else { return }
colorPicker.rootViewController.showAlphaSlider = false
colorPicker.rootViewController.importBlock = nil
colorPicker.rootViewController.dismissBlock = { cancel in
self.dismiss(animated: true, completion: nil)
}
colorPicker.rootViewController.colorSelectedBlock = { color,vc in
//
}
colorPicker.modalPresentationStyle = .formSheet
present(colorPicker, animated: true, completion: nil)
Does changing to full screen style help?
It does not change, "modalPresentationStyle" has effect on iPad only.
There are some problem with iPhone X borders. Here some screenshots: