Git Product home page Git Product logo

Comments (14)

aChase55 avatar aChase55 commented on June 16, 2024 2

I think it might be a threading issue. The A10 processor in the iPhone7 devices could be causing a race condition when rendering ColorPickerImage

This would also explain why the issue is only occuring on physical iPhone 7 devices

from swiftcolorpicker.

aChase55 avatar aChase55 commented on June 16, 2024

Seeing the same issue. I've noticed this only happens with a physical device. Color picker renders properly on iPhone 7 simulator

from swiftcolorpicker.

sarperdag avatar sarperdag commented on June 16, 2024

Having the same problem. Anyone found a solution yet?

from swiftcolorpicker.

aChase55 avatar aChase55 commented on June 16, 2024

@MrMatthias can you at least try to point me in the right direction with this issue? Or update the status? This is a blocker for any production iOS 10 application.

from swiftcolorpicker.

MrMatthias avatar MrMatthias commented on June 16, 2024

@aChase55 @sarperdag @JDiDev Can you set the colorspace in PickerImage::createImageFromData like this and see if it fixes the problem:
let colorSpace = CGColorSpace.init(name: CGColorSpace.sRGB)!
I don't have a device to test it

from swiftcolorpicker.

sarperdag avatar sarperdag commented on June 16, 2024

already tried it and it's not working...

from swiftcolorpicker.

aChase55 avatar aChase55 commented on June 16, 2024

I tried to quickload view the img variable in ColorPicker's drawRect method and got this

[Example] ImageIO: handle_error:350: zlib error
[Example] ImageIO: handle_error:350: No IDATs 

Looking into it

from swiftcolorpicker.

MrMatthias avatar MrMatthias commented on June 16, 2024

@aChase55 can you try to disable the changeSize method in PickerImage? Locking should be coordinated in the ColorPicker class which is not the case.

from swiftcolorpicker.

aChase55 avatar aChase55 commented on June 16, 2024

@MrMatthias

Made the following changes:

screen shot 2017-06-06 at 12 57 19 am

screen shot 2017-06-06 at 12 51 29 am

Still seeing the same:
screen shot 2017-06-06 at 12 55 56 am

from swiftcolorpicker.

bworby avatar bworby commented on June 16, 2024

I just ran into this issue as well. iPhone 7 does not show the Color Picker. Did anyone find a fix for this?

from swiftcolorpicker.

h36ahmed avatar h36ahmed commented on June 16, 2024

Hi all, I am running into the same issue. Did someone find a solution?

from swiftcolorpicker.

matrejek avatar matrejek commented on June 16, 2024

@MrMatthias - I see that it does not affect BinaryClock app - any more ideas?

from swiftcolorpicker.

matrejek avatar matrejek commented on June 16, 2024

For those looking for the solution - here is the working one FlorianCP@058ed68

from swiftcolorpicker.

matrejek avatar matrejek commented on June 16, 2024

I have ported the solution for example branch, will do for master as well.

from swiftcolorpicker.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.