12 questions
0 votes
0 answers
79 views
Jump when animating SwiftUI view in UITableView cell with matchedGeometryEffect
I created the following MRE to demonstrate how a SwiftUI view with matchedGeometryEffect in UITableView cell causes visual jump during animation despite height updates. Initially, the cell would not ...
0 votes
2 answers
223 views
How to define and use a @Namespace var outside a View
Is it possible at all to define a @Namespace var outside a View and pass it in to views. For example, to do this in the State class? I have included a baseline code that has matched animations. I have ...
2 votes
2 answers
106 views
MatchGeometryEffect not work properly while return come back to start position
I am working on geometryMatchEffect and struggled on one point. In my case, when tap on a item, the item should be fly to page of the top and other items should remain backside. And then when tap on ...
1 vote
1 answer
76 views
How to fix Z-stack views reordering while using MatchedGeometryEffect?
I wanted to create a simple custom segmented control component with animation similar to native component. I have seen lots of people using matchedGeometryEffect for this, however when I implemented ...
0 votes
1 answer
117 views
SwiftUI Animation in Tabbar
I am wanting to animate switching between tabs but the animation are very hard. I tried using matched geometry but the animation was wacky. Could be lack of understanding on matched geometry. The ...
1 vote
1 answer
259 views
How to disable the matchedGeometryEffect
I have a view that uses the .matchedGeometryEffect to make moving transitions. I'd like to be able to switch this effect off if the user objects to this type of animation. I could create two almost ...
0 votes
0 answers
386 views
Animating Text() Across screens with Matched Geometry Effect
I'm trying to have a matched geometry effect where a Text() is being animated across two different screens/views. I want the animation to continuously interpolate the texts size between the source ...
0 votes
0 answers
60 views
Why Does SwiftUI Matched Geometry Transition of Text Have Asymmetrical Behavior?
In this SwiftUI code, why does the matched geometry effect have a weird asymmetry (there is a slight left/right and up/down wavering -- the Text does not simply animate in a "straight line" ...
0 votes
1 answer
723 views
Animation problem when using Namespace and MatchedGeometryEffect
I've caught a very strange problem (THAT ONLY OCCURS ON REAL DEVICES) that has to do with using @NameSpace and MatchedGeometryEffect using NavigationStack. The problem is that if I go from the first ...
2 votes
1 answer
127 views
Use matchedGeometryEffect to create 'slide' effect for border
I'm trying to create a custom 'tab' selection control with a horizontal row of options and the user can select one of N number of options. The 'selected' option will have a 'border' around it. Here's ...
2 votes
0 answers
541 views
Unwanted Crossfade Effect in SwiftUI's Matched Geometry Effect
In SwiftUI, I'm working with two screens, Screen A and Screen B. I'm attempting to create a transition effect using SwiftUI's matched geometry feature. The transition involves two rounded rectangles: ...
11 votes
3 answers
3k views
Is it possible to resize text with matched geometry effect?
I have an overlay transition that uses matchedgeometry effect, as shown in this video: Matched Geometry Effect with same sized text I want to enlarge the transitioned text after the animation, but it ...