Skip to main content

All Questions

0 votes
1 answer
56 views

Animating items in a SwiftUI list only at first appearance

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
0 votes
0 answers
28 views

Append item in list with slide animation

I have one view named CongratulationOverlay, and in bottom there is one horizontal list. Now I want that overlay view to slide in to the horizontal list as I am appending that into list. and ...
Jatin's user avatar
  • 1
1 vote
1 answer
379 views

SwiftUI symbol effects animate on scrolling list only when in Stack view

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,854
1 vote
1 answer
170 views

How can i get animation when click a button that in List?

My code is like this: List { Button(action: {}, label: { Text("Button") }) Button(action: {}, label: { Text("...
stul's user avatar
  • 52
1 vote
1 answer
355 views

SwiftUI - Change Row Colors When Moving One Row

I'm building a reorderable List in SwiftUI. It has been straightforward for the most part (using the onMove closure to update the datasource). However, I'm running into issues understanding how to ...
Andrew's user avatar
  • 811
0 votes
1 answer
147 views

Animated a listRowBackground gradient?

I have a view that looks like this: I would like to animate the gradient in the listRowBackground, but I am not able to for some reason. Here is the code I have: import SwiftUI struct SnakeColorView:...
Ness Earthbound's user avatar
1 vote
1 answer
71 views

List animations ignoring Animation parameter

I've been trying to get changes to my list elements to animate correctly. However, items in a list don't seem to animate as specified. In this simple example, an element is removed. There is an ...
Alex Hartog's user avatar
2 votes
1 answer
371 views

Hero animation not working in List when setting row's id dynamically

Recently ran into an issue trying to perform Hero animation using matchedGeometryEffect in SwiftUI. My issue is that setting id for matchedGeometryEffect effect dynamically isn't working as expected. ...
rdev's user avatar
  • 158
0 votes
1 answer
843 views

SwiftUI .rotation3dEffect animation doesn't have desired depth effect in Apple Watch List Row

When .rotation3dEffect is animated in an Apple Watch listRow, the row appears to animate above the prior row (which is desired), but the animation appears to take place under the next row which ruins ...
Ryan's user avatar
  • 702
4 votes
0 answers
853 views

SwiftUI: LazyVGrid not refreshing while scrolling

I have a LazyVGrid that displays search results, as I type characters in the search field, I perform CoreData fetch requests and update a @Published property. Problem: LazyVGrid updates results as ...
Kuringan's user avatar
  • 147
1 vote
0 answers
170 views

Spring animation in SwiftUI, IOS14 is broken

struct ContentView: View { @State var search: String = "" let data = ["one", "two", "three", "four", "five", "six", "...
Roma's user avatar
  • 11
1 vote
0 answers
283 views

How can I control the animation of a new row in SwiftUI List?

I have an inverted list in a chat application. When a new row is added, the default animation is almost like a curtain coming up to reveal the new row. The new row seems to appear from bottom to top....
alionthego's user avatar
  • 9,843