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

Non-animated updates shouldn't wait until the next turn of the run loop #26 #27

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

jtrivedi
Copy link
Owner

@jtrivedi jtrivedi commented Jan 11, 2023

Copied from #26:

let v = UIView()
v.bounds.size = CGSize(width: 50, height: 50)
v.animator.scale = CGPoint(x: 0.5, y: 0.5)

print(v.frame.size)

This will print (50, 50) instead of (25, 25) until the next turn of the run loop. We shouldn't require the display link to fire to update things non-animatedly.

@jtrivedi jtrivedi changed the title [WIP] Non-animated updates shouldn't wait until the next turn of the run loop #26 Non-animated updates shouldn't wait until the next turn of the run loop #26 Jun 3, 2024
@jtrivedi jtrivedi merged commit 27b7e1d into main Jun 3, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant