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

Request: Arbitrary view modifiers #130

Open
blsage opened this issue Jul 1, 2024 · 0 comments
Open

Request: Arbitrary view modifiers #130

blsage opened this issue Jul 1, 2024 · 0 comments

Comments

@blsage
Copy link

blsage commented Jul 1, 2024

It seems that the navigation transitions only support 3 fundamental types of transitions (as identified in AnimatorTransientViewProperties):

  1. alpha: CGFloat
  2. transform: CATransform3D
  3. zPosition: CGFloat

I've tried to understand the inner-workings of the package, but it seems to be above my comprehension level. Would it be possible to add a closure for arbitrary view modifiers based on the progression of the transition? This would allow for much more customizability over creating navigation transitions.

Also, it would allow developers to write their transitions in native SwiftUI. Perhaps View/scrollTransition(_:axis:transition:) could be a model for the API.

I, specifically, am looking to create a blur+scale navigation transition, but I don't think the blur part is currently possible.

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

1 participant