DigitalRuby / DRColorPicker

Digital Ruby, LLC Color Picker for iOS
http://www.digitalruby.com/introducing-drcolorpicker-ios/
Other
75 stars 14 forks source link

iPhone X support #11

Open filom opened 6 years ago

filom commented 6 years ago

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

jjxtra commented 6 years ago

How are you presenting it?

filom commented 6 years ago

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)
jjxtra commented 6 years ago

Does changing to full screen style help?

filom commented 6 years ago

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