Skip to content

Stop using AnyView #3

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ZevEisenberg
Copy link
Contributor

@ZevEisenberg ZevEisenberg commented May 10, 2024

A couple of generics that mean we don't need to use AnyView, which could improve performance since view type information is no longer erased.

By the way, I was poking at this more to figure out how it worked, and your solution is super clever. I was trying to do it the other way around: get the UIInterpolatingMotionEffect to write to a property in UIKit, then exfiltrate the value of that property up to SwiftUI. But yours works the other way around: it wraps a SwiftUI view in a UIView and then applies the motion effects to the wrapper. I dig it!

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