Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox Click Delay #2

Closed
Mahan3340 opened this issue Oct 28, 2017 · 3 comments
Closed

Checkbox Click Delay #2

Mahan3340 opened this issue Oct 28, 2017 · 3 comments

Comments

@Mahan3340
Copy link

There is a litte delay in click till it actually work , test that by clicking the checkbox fast and it wont act ( check state wont change) but sliding on it or holding it for sometime > 1s is working but pressing fast like a normal press for any touch input is not changing the checkbox state

@saeid
Copy link
Owner

saeid commented Oct 29, 2017

@Mahan3340 what version of Xcode this is happening?
Are you updating UI in the main thread? the cause of this issue is when UI update is not triggering in the main thread. let me know if this solves the issue for updating the code.

@Mahan3340
Copy link
Author

I'm suing Xcode 9 and swift 3.2 running on iPhone 6s ios 11 , I guess its on main thread cause there is not network or threading , but what should I run on MainThread ? I'm not setting anything with code but just dragged and dropped and clicking it

@saeid
Copy link
Owner

saeid commented Oct 30, 2017

@Mahan3340 I could not replicate this issue, please try to change your Swift target to 4.0 and try again.
use for updating ui in main thread:

    DispatchQueue.main.async { // Code }

but basically, the checkbox update itself in main thread, just in case of test you can test this!
also try to create a test project and test there with just drag and drop the .swift file in the project and assign to a view and run the project to check if the issue is happening again or not.

@saeid saeid closed this as completed Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants