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

Rename IsCompleted to IsRunning #127

Merged
merged 3 commits into from
Jul 7, 2022

Conversation

bijington
Copy link
Contributor

Description of Change

Renamed the IsComplete property to IsRunning.

Bugs Fixed

  • Related to issue #

API Changes

Behavioral Changes

Inversion of the value to match the change of name.
The IsRunning property now has a default binding mode of BindingMode.OneWayToSource as it is used to bring information out of the control and drive values in.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Updated documentation

Also swapped to a BindingMode.OneWayToSource to allow this to provide values out to the VM or other controls in bindings with it not intended to control the running of the animation itself
@mattleibow mattleibow merged commit ce6c5c0 into mono:main Jul 7, 2022
@mattleibow
Copy link
Contributor

I am reverting this because I am noticing an ambiguous state.

If I have a lottie/confetti view that is disabled, the IsRunning will still be true (based on implementation logic) because it was originally designed to represent whether the animation is complete or not. For example, if you have a lottie that is 2 seconds long and you are at 1s - you are not complete and you are running. If you are to disable the view at this point, you are still running and still not complete. Using the IsRunning terminology, you would sort of expect it to be false because it is not moving. However, with the IsComplete terminology, this is not expected.

The first PR with IsAnimationEnabled is still a much better term.

mattleibow added a commit that referenced this pull request Jul 13, 2022
mattleibow added a commit that referenced this pull request Jul 13, 2022
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.

2 participants