-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Really exciting that we're able to use Wave in SwiftUI. Couple of questions:
- Should animators be held via
@Stateto avoid instantiating new instances each time views are rendered?
let offsetAnimator = SpringAnimator<CGPoint>(spring: Spring(dampingRatio: 0.72, response: 0.7)) - Seems like this works by updating
boxOffsetand triggering a state change in SwiftUI - I wonder if there's a more performant way to do this?TimelineViewperhaps?
@State var boxOffset: CGPoint = .zero
Metadata
Metadata
Assignees
Labels
No labels