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
0
votes
1 answer

Swift UIKit - Sequential animation function

I have a func UIView.animate (2 imageViews, up/down, pulsating 4 and 2 times sequentially), which is forking fine. Problem is that i need to run this func sequentially, all animations executed -> next lap of execution -> N lap of execution for my…
Zenit
  • 3
  • 1
0
votes
1 answer

How do I make a transition move leading and move trailing?

I have a "Side-Menu" that I'm implementing in my app, however I have an issue where I can only get the side menu to slide in, but when it's removed from the view, it does an opacity transition. How do I properly set a transition such that it slides…
xTwisteDx
  • 2,152
  • 1
  • 9
  • 25
0
votes
0 answers

Double blinking animation effect infinitely with SwftUI

I need an animation where the image will have a double blink effect (opacity changes from 1 to 0.4 and does it 2 times in a row), then waits 3 seconds, and repeats this again an infinite number of times. I tried to solve it with .repeatCount(3),…
Dobry Siabar
  • 53
  • 1
  • 3
0
votes
1 answer

How to create transition animation from main VC by gesture as Instagram

I want to create a transition from TabBar by gesture left or right as in Instagram, I'll attach a video example here, but can't fully understand how it works, and what I can use for the recreation of this example. What I should use if I want to…
Ice
  • 680
  • 1
  • 10
  • 23
0
votes
0 answers

SwiftUI transition animation glitches when clicking too fast

I'm using a hero animation to connect a card style view and a detail page. The animation works fine when I click the card and go to the detail page. However when I close the detail page, if I click the card again in a really short time, the image…
GeekNomore
  • 13
  • 4
0
votes
1 answer

How to animate a UILabel that resizes in parallel with its container view

I am trying to animate a multi-line label inside a UIView. In the container view, the width of the label is relative to the bounds. When the container view is animated, the label jumps to the final state and then the container resizes. How can I…
James
  • 291
  • 1
  • 3
  • 13
0
votes
0 answers

UINavigationBar Background Color Animation

I am trying to implement Apple's detail screen from their Podcast, Music, and App Store Apps. The navigation bar starts off transparent then increases the alpha the further down you scroll. I have the desired effect working changing the alpha value…
David Henry
  • 1,972
  • 20
  • 43
0
votes
1 answer

Has the behavior of asymmetric transitions changed in SwiftUI 4 / iOS 16?

I've been using an asymmetric transition which has been working flawlessly during the time of iOS 15. However, with the introduction of iOS 16 the transition no longer works as expected. In short: In my app I'm using a paged tabview. When you swipe…
skegget
  • 111
  • 1
  • 7
0
votes
1 answer

Memory Crash on layoutIfNeeded() during Animation

Can anyone help me diagnose this crash. It happens in the animation block on the layoutIfNeeded() function call. Full function and crash report attached. It seems to be related to memory but I can't pin it down. private func showWarningView() { …
DaVinci
  • 124
  • 5
0
votes
1 answer

Conditionally updating a second property during animation in SwiftUI

I have an animated Arc drawn in SwiftUI that represents data coming from two devices. When the arc animates to the left, the "gauge" is indicating that left device's data is higher than the right's and vice versa. The "top" is zero, which is 270…
Ja5onHoffman
  • 642
  • 8
  • 17
0
votes
1 answer

How to perform a zoom-in , zoom-out animation for tableview cells?

I was wondering how can i can recreate this animation? The first 2 cells stays as it is but only the cells from index 2 are having animation. Right now i am recreating this by using let rotationTransform =…
Zyfe3r
  • 653
  • 6
  • 24
0
votes
1 answer

Cannot use Gifu Pod in my app "GIF doesn't appear"

I've been using Gifu pod in my code but it doesn't work correctly, the gif doesn't appear at all. launchScreen image: LaunchScreen code: import UIKit import Gifu class LaunchScreenViewController: UIViewController { @IBOutlet weak var…
Menaim
  • 937
  • 7
  • 28
0
votes
1 answer

Confused with layer freezing

I created layer animation group (CAAnimation group). group.animations = [ anim1(customUnderlyingLayer: customUnderlyingLayer, semiEllipse: semiEllipse, duration: 0.1,timingCurve: CAMediaTimingFunction(controlPoints: 0, 1.64, 1, 1)), …
Ninja
  • 309
  • 7
  • 26
0
votes
1 answer

Falling Animation for Swift(iOS without using storyboard)

I'm new to iOS and trying to practice falling animation like Yolo app. What Yolo app has is on sign up page, it has bunch of falling emojis at different velocity seamlessly. So if I want to implement the falling animation for each emojis and without…
Si Choi
  • 25
  • 1
  • 3
0
votes
1 answer

iOS gradient fill in text animation

In iOS Objective C, I need the text fill animation with gradient, the animation will fill the gradient from bottom to top (Vertically). I am not good in core graphics or animation things in iOS. Has anyone did this kind of task before. Any help…
Mayank Jain
  • 5,663
  • 7
  • 32
  • 65