SwiftColorPicker
SwiftColorPicker copied to clipboard
Crashes when appearing, Plus screen size
I have a set up like so:
But I repeatably/consistently get crashes on this line, using my iPhone 6 Plus and 6s Plus simulator:
https://github.com/MrMatthias/SwiftColorPicker/blob/2fdaf66f186e868f66a4cf751d10923e69960e0b/Source/PickerImage.swift#L76

Something weird happening to the CFMutableDataRef
? Size not expected?
It's worth nothing I took that screenshot of the UI in the crashed state.
Currently the size has to be fixed or the buffers need to be adjusted
Thanks for the quick response! Can you elaborate? Does that mean I need to set a specific width by height size to the color picker area?
yes, setting a width and height constraint works.
I can't seem to set a w/h constraint that works for Plus size as well as regular size. They are different sizes, so they need different values...but they are the same size class so I can't use class sizes to set different values.
I tried dynamically adjusting the width constraint in viewDidLoad(), but that didn't seem to work.
You said "size has to be fixed or the buffers need to be adjusted"...how can I adjust the buffers?
This is a great color picker, but if it explodes on some phones, then that's a dealbreaker. :(
Please help?
Thanks brian
Also having issues with Plus size again. Adding it as a custom class in a storyboard causes a crash. Adding in code doesn't crash. Instead, moving the finger causes graphical glitches, even with set width/height.