Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
86 views

I am trying to present a modal that contains an element using matchedGeometryEffect. I’ve run into a problem — if I animate the transition, the matchedGeometryEffect animates as well. I’d like it not ...
Andriy Gordiychuk's user avatar
0 votes
0 answers
17 views

I have a view that can be in two different positions depending on the state of the rest of the app. The same view can contain either two or three buttons depending on some state that is determined ...
Pablo's user avatar
  • 317
0 votes
1 answer
116 views

I have a simple SwiftData app. Whenever ImageLibraryView appeared, there were microhangs because images inside each ThumbnailView were being loaded synchronously. So I solved that by loading the ...
RRR's user avatar
  • 315
-3 votes
1 answer
98 views

Currently, I am using multiple Texts in a horizontal stackview, to achieve animation of substring. As you can see in the above animation, the text - conversation - meeting - lecture are animated. ...
Cheok Yan Cheng's user avatar
0 votes
0 answers
161 views

I'm attempting to animate an array of annotations on a SwiftUI MapKit Map and not getting the behavior I'm expecting. I see lots of examples on how to animate the map camera, etc, and even a few on ...
Scott's user avatar
  • 1,114
-1 votes
1 answer
154 views

I am struggeling to understand how exactly SwiftUI animates view changes in a concrete example I am working on. TL;DR The description of the problem and the code is quite long. The basic question is: ...
Andrei Herford's user avatar
1 vote
0 answers
126 views

I was trying to make the animation of a pie chart, I was trying to make the appear layout animation. (As the user navigates to the page, the pie chart will animate, starting from the 12 o'clock ...
user27961078's user avatar
0 votes
0 answers
32 views

Is a game selection with 3 different options per round. I added an animation to the button selected. But I'm trying to add an animation for the buttons that are not selected. I'm new to Swift and ...
Joshua Rosado Olivencia's user avatar
1 vote
1 answer
41 views

How can I animate changes to a view when the value being mutated is a reference type? In the example below, changing the reminder time updates the order but without animation. I thought arrays were ...
WorldNeedsRefactoring's user avatar
0 votes
2 answers
1k views

This code would produce an animation that crossfades the values whenever I change self.myTextString: // In some View's body method Text(self.myTextString) .transition(.opacity) .animation(.easeInOut(...
horseshoe7's user avatar
  • 2,847
0 votes
1 answer
719 views

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 ...
Simimi_Dot's user avatar
0 votes
1 answer
154 views

I am new to iOS development and I have been working on a project using SwiftUI. I have a sheet where I can buy or sell some stocks. On successful transaction, I am supposed to show a green screen with ...
Kishan Seksaria's user avatar
1 vote
1 answer
399 views

I'm trying to get this to animate nicely when I add elements to my array. Currently the button jumps down after the foreach elements are added. Here's my code: import SwiftUI class ...
P. Sami's user avatar
  • 2,217
2 votes
2 answers
114 views

Given the following example that uses explicit animations (withAnimation) to change the size of a rect (animated) and its color (not animated): struct ContentView: View { @State var size: ...
Ralf Ebert's user avatar
  • 4,162
1 vote
1 answer
445 views

When: Embedding a Image with a symbol effect in a stack view in SwiftUI, and putting this in a List Actual: The symbols animate when scrolling that item in and out of the view Expected: The symbol ...
Adam Carter's user avatar
  • 4,864
0 votes
1 answer
142 views

I am struggling with the animation of views when inserting them into a stack. In general, I am trying to create an effect where cards fly out from the stack and move to their final destination. I have ...
Igor's user avatar
  • 33
0 votes
2 answers
1k views

I've been trying for sometime now to figure out why the .matchGeometryEffect is not transitioning smoothly in my use case. The state change speed is not consistent, growing quicker and going back ...
Astro's user avatar
  • 279
2 votes
2 answers
2k views

I have a WaveView which is just a sine wave and a rectangle. To make it act like a real wave, I need it to translate unstoppably. So I wrote a Wave view and added an animation on offset with a timer ...
richardjorne's user avatar
1 vote
1 answer
635 views

Today I faced an issue with animations depending on which kind of ForEach I use. To be honest I don’t understand what exactly the issue is. I created this little example for you. The AudioIndicators ...
Spriter's user avatar
  • 653
1 vote
1 answer
197 views

I'm just using swiftUI. I want some one view to have a repeating animation: 1.move up, 2.pause, 3.move up, 4.pause, 5.move down, 6.pause, 7.move down, 8.pause. Similar to the undulations of pixel wind ...
user23194465's user avatar
1 vote
2 answers
5k views

I have a problem with animation in SwiftUI, if I'm using .animation, my animation is not working. ZStack(alignment: .bottom) { VStack { Button("Button") { showView....
Suweey's user avatar
  • 43
5 votes
1 answer
831 views

I'm working on a SwiftUI project where I use a .sheet modifier to present a bottom drawer with two detent sizes: .medium and .large. The drawer contains a button that toggles its size between these ...
Dan Flict's user avatar
  • 199
0 votes
1 answer
921 views

I'm new to SwiftUI and I'm trying to update the view while ScrollView is scrolling. As I scroll the screen, I want to increase the size of the image in the middle by 1.2, increase the visibility of ...
onur.altintas's user avatar
0 votes
1 answer
282 views

I have a SwiftUI button in one of my views. For the label I use two different SF Symbols with different colors and animations based on the value of a var "gpsIsActive" Here is a video: The ...
HirsuteJim's user avatar
1 vote
1 answer
181 views

My code is like this: List { Button(action: {}, label: { Text("Button") }) Button(action: {}, label: { Text("...
stul's user avatar
  • 82

1
2 3 4 5 6