Questions tagged [matchedgeometryeffect]
11 questions
2
votes
1 answer
How can I make my image transition smoothly with matchedGeometryEffect?
The text will transition smoothly from left to right.
The image will also transition smoothly from left to right, however it decides to fade out/fade in. Because it is the exact same image, I want the image to stay solid and not transparent in the…

Mark
- 16,906
- 20
- 84
- 117
1
vote
1 answer
MatchedGeometryEffect giving undesirable ZIndex results
In SwiftUI, I've created a 2x2 Grid of Colors in a ZStack. I want to click a color and have it expanded into a DetailView using .matchedGeometryEffect in my ZStack without any kind of transparency. This was very easy to do using the following…

ZoydWheeler
- 13
- 4
1
vote
1 answer
Dismiss gesture with scale effect
When I add a drag gesture to dismiss my "big view" it scales to the amount of the gesture but if it dismisses, the view jumps to its origin scale and animates the view to the "small view".
Here is my example Code:
`
struct TestView: View {
@State…

Noah
- 21
- 2
1
vote
1 answer
SwiftUI stocking geometry effects and tabBar animation
Hey guys I have some issues with my code. I just experimented a bit with the matchedGeometryEffect in SwiftUI and it works great. But now I ran into some issues:
I cannot just deactivate the tabBar when the DetailView is dismissed because the view…

Noah
- 21
- 2
1
vote
1 answer
SwiftUI matchedGeometryEffect combined with NavigationView
I'm trying to used matchedGeometryEffect on a pair of views. It works well until you navigate to a child view and then back, in which case the matchedGeometryEffect seems broken briefly (the red rectangle is instantly visible when I try expanding my…

SweetSour
- 73
- 1
- 5
0
votes
1 answer
MatchedGeometryEffect + Image Url
Can someone please explain why MatchedGeometryEffect works with images from the assets folder but not from URLs? And how do we get around this so we can use MatchedGeometryEffect with actual images?
Video with Image Asset (works):…

tintin
- 107
- 2
- 6
0
votes
1 answer
Animation for Custom Segmented Picker in SwiftUI
I am trying to recreate a segmented picker with customized buttons. My goal is that when switching the tab, the background smoothly transitions from the former active tab to the new active tab. it mostly works, but when I am trying to switch back…

kai
- 3
- 2
0
votes
0 answers
Unable to animate views from modal sheet
MRE
struct ContentView: View {
@Namespace var namespace
@State var show = false
var body: some View {
VStack {
Rectangle()
.fill(.blue)
.matchedGeometryEffect(id: "blue", in:…

erotsppa
- 14,248
- 33
- 123
- 181
0
votes
0 answers
Transition with matchedGeometryEffect works correctly only in one direction
Trying to make segmented control animation with changing options colors. In one direction everything works good, but in other background is above content. I want to do it without GeometryReader.
Animation works good in one direction:…

Artyom Zagoskin
- 1
- 2
0
votes
0 answers
estimate required impact by matched_markets library for geo experiments
Can someone help me understand this function? I am wondering what methodology or stats framework it is based off.
`def _impact_estimate(
self,
n_test: int,
n: int,
flevel: float,
sig_level: float,
power_level: float) -> float:
"""Estimate the…

Olive L
- 1
0
votes
0 answers
swiftui matchedgeometryeffect is not smooth
I have two views, one view has an HStack that displays a list of views, each containing an image and text. When one view is clicked, a detail view is displayed which will contain the image and text of the selected view.
The problem is the…

abs8090
- 111
- 2
- 9