DRColorPicker icon indicating copy to clipboard operation
DRColorPicker copied to clipboard

iPhone X support

Open filom opened this issue 7 years ago • 4 comments

There are some problem with iPhone X borders. Here some screenshots:

screen shot 2018-02-16 at 11 14 00 pm

screen shot 2018-02-16 at 11 14 51 pm

filom avatar Feb 16 '18 22:02 filom

How are you presenting it?

jjxtra avatar Apr 07 '18 02:04 jjxtra

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)

filom avatar Apr 07 '18 10:04 filom

Does changing to full screen style help?

jjxtra avatar Apr 07 '18 12:04 jjxtra

It does not change, "modalPresentationStyle" has effect on iPad only.

filom avatar Apr 08 '18 10:04 filom