Skip to content

Implement support to disable animations#12

Open
denandreychuk wants to merge 2 commits intoSwiftUIX:masterfrom
Pimine:animation-control
Open

Implement support to disable animations#12
denandreychuk wants to merge 2 commits intoSwiftUIX:masterfrom
Pimine:animation-control

Conversation

@denandreychuk
Copy link

No description provided.

@denandreychuk
Copy link
Author

denandreychuk commented Jan 27, 2026

@vmanot, lemme know if I'm doing the right thing here and not breaking anything


let firstTransition = transitions.removeFirst()
var firstTransition = transitions.removeFirst()
firstTransition.animated = transition.animated && firstTransition.animated
Copy link
Author

@denandreychuk denandreychuk Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the following logic:

  1. If caller decided not to animate through trigger(.some, animated: false), every linear transition will not be animated
  2. You can override animation with now public property to disable animation for specific transition

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.

1 participant