Questions tagged [ios-animations]

Animations provide fluid visual transitions between different states of your user interface.

Animations

Animations provide fluid visual transitions between different states of your user interface. In iOS, animations are used extensively to reposition views, change their size, remove them from view hierarchies, and hide them. You might use animations to convey feedback to the user or to implement interesting visual effects.

In iOS, creating sophisticated animations does not require you to write any drawing code. All of the animation techniques described in this chapter use the built-in support provided by Core Animation. All you have to do is trigger the animation and let Core Animation handle the rendering of individual frames. This makes creating sophisticated animations very easy with only a few lines of code.

Official Documentation

188 questions
-1
votes
0 answers

KeyframeAnimator or PhaseAnimator with long tail spring animations

When defining a KeyFrameAnimation with spring tracks, the animation does not complete until the very end, but, as default when using withAnimation with a spring animation, it will start the next animation For example, if a complete spring animation…
-1
votes
1 answer

safe way to animate CALayer

When I was looking for a CALayer animation, I found solutions like this one: let basicAnimation = CABasicAnimation(keyPath: "opacity") basicAnimation.fromValue = 0 basicAnimation.toValue = 1 basicAnimation.duration = 0.3 add(basicAnimation, forKey:…
Phil Dukhov
  • 67,741
  • 15
  • 184
  • 220
-1
votes
1 answer

Swift - Delete Animation Effects

I have an animation that deletes a circle in the UI and then recreates it somewhere else, but when I recreate it, it is smaller than what I want. I can't figure out why it is appearing smaller. let viewsToAnimate = [circleFrame] …
Taylor
  • 733
  • 7
  • 18
-1
votes
2 answers

how to make carousal animation in ios?

Hello all i need to make carousal same as image. horizontal circular carousal.
-1
votes
1 answer

How to fade in UIImage according to download progress of another file

I have a UIImageView that I set a placeholder image in it, Then I want to gradually set the real image to it at the end, But this change should be according to the progress of downloading another file. (Not the image) When the file is 10% the image…
Khaled Annajar
  • 15,542
  • 5
  • 34
  • 45
-2
votes
1 answer

How can I implement this UICollectionView cell animation?

I've been wanting to implement this nice little UICollectionViewCell animation shown below that was on Dribble. Do you think it's possible? I looked around for any guides to get a head start on this but found nothing quite similar. I have the idea…
-3
votes
1 answer

Translate UIView animation Swift code to Objective-C

I need to translate this Swift code to Objective-C. animationView?.subviews .compactMap({ $0 as? RotatedView }) .sorted(by: { $0.tag < $1.tag }) .forEach { itemView in rotatedViews.append(itemView) if let backView =…
Shree Ram
  • 33
  • 1
  • 6
-4
votes
3 answers

animate an UIView frame 0 to 360 degree as song progress bar

I am playing audio songs from internet , I want to show the song progress something like this- please help me how to animate UIView frame from 0 to 360 degree in song time duration.
Anupam Mishra
  • 3,408
  • 5
  • 35
  • 63
1 2 3
12
13