Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
0 answers
21 views

SF Symbol replace animation size is off

I want to achieve this animation where the wifi symbol is slashed: It's partly working, but the wifi bars are scaling and moving I'm using this code: Image(systemName: showSlash ? "wifi.slash&...
Tieme's user avatar
  • 64.4k
0 votes
0 answers
24 views

The rotation animation runs in several cells. How to fix it?

Good afternoon everyone. I can’t understand why, when you click a button, the animation runs in another cell? For example, I click on cell 1, the animation starts on cell 4. Cells are redrawn after ...
Steven Kirke's user avatar
0 votes
1 answer
25 views

SwiftUI NavigationSplitView - Nested List Not Animating

I've encountered a SwiftUI NavigationSplitView bug in my app that I'd appreciate help with, I've spent quite some time trying to work out a solution to this problem. I have a main list, which has ...
Eytan Schulman's user avatar
1 vote
1 answer
51 views

Animate Map Annotation Swift UI

I am trying to animate map annotations when they appear with an interactive spring. But currently no animation takes place. The actual annotation label does not accept any view modifiers like ....
Ahmed Zaidan's user avatar
0 votes
0 answers
41 views

Alternate between three different animations over timer cycles using SwiftUI?

I want to run three different animations, A , B ,C, A, B, C alternating like that, over different time periods, like 30s(A), 10s(B), 10s(C), 40s(A), 10s(B), 10s (C), 50s(A), 10s(B), 10s(C) etc for ...
ProgrammerTrying's user avatar
0 votes
0 answers
37 views

SwiftUI list animation changing the way it animates when I replace dummy data with real data?

I have an animation I made for a game totals list that saves the previous result and on the next time the view opens floats the users result view to the new position from the old ranking position. I ...
Christopher's user avatar
0 votes
0 answers
45 views

(SwiftUI) withAnimation doesn't work the first time

i'm making a comments screen, where the user can see the comments of a post as well as their replies. when i click "View x more replies", i'd like for the replies to expand with an animation....
lex's user avatar
  • 161
1 vote
1 answer
104 views

Animated Gradient Background in Swift UI

I'm trying to create an animated "flag" style gradient on top of my User Profile View -kind of similar to what Stripe has here: https://stripe.com/gb The code I have below toggles the ...
Alk's user avatar
  • 5,457
0 votes
1 answer
31 views

Swift Animation does not work when reentering screen

I have built a view with an animation and everything seemed to work fine, but then I found out that it only works for the first time and not for the second. As I am a newbie in Swift programming I don'...
Strassenrenner's user avatar
-1 votes
1 answer
87 views

Why do explicit animations work better than implicit animations here? (100 Days of Swift UI: Guess the flag)

I'm working on a project challenge. I've previously made a flag quiz game where there are three buttons made by a ForEach loop with images as flags. The challenge is to animate the flags so that the ...
Gab N.'s user avatar
  • 133
1 vote
1 answer
55 views

Issues with checkmark animation

I am using following code to display success with circle and checkmark struct CheckMarkView: View { @State var borderInit: Bool = false @State var spinArrow: Bool = false @State var ...
iosdev1111's user avatar
  • 1,092
0 votes
0 answers
150 views

Keyboard Animation Issue in Swift UI with iOS 15: Animating from the Right Instead of Bottom

I'm developing an app using Swift UI on iOS 15 and encountering a peculiar issue with keyboard presentation. When transitioning to a new screen, I programmatically set focus to a TextField with a ...
Danila Belyi's user avatar
1 vote
1 answer
274 views

Custom fullScreenCover animation

Is it possible to add a custom animation to a fullScreenCover? The default animation has been disabled but I am struggling in finding a way to add a custom animation. I guess that transaction....
José's user avatar
  • 3,144
1 vote
0 answers
47 views

Slicing Animation in RealityKit/VisionOS

I have a model loaded in my view (a simple cube) and I want to slice it based on the user's drag gesture (ie. axis of slice animation should be co-axial to the drag gesture). It should slice the model,...
siyogurt's user avatar
0 votes
0 answers
61 views

How do I animate values of a Shape with multiple different animation transactions simultaneously?

I'm trying to animate a sine wave made out of a Shape struct. To do this, I need to animate the phase of the wave as a continuous looping animation - and then animate the frequency and strength of the ...
Filibustr's user avatar

15 30 50 per page
1
2 3 4 5
157