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
2
votes
2 answers

SwiftUI Animation Bug inside Scroll View

I am relatively new to SwiftUI and I am trying to implement animated loader to my app. It works fine until I scroll my content inside scroll view down and then move back to trigger pull to refresh. Circles started to jump though they should only…
2
votes
1 answer

Why is memory not freed after a lottie-ios animation view controller is dismissed?

I have a view controller with AnimationView (the class of lottie-ios pod). The animation takes too much memory (about 800 MB). But the problem is that,after the view controller is dismissed, the memory is still full. The animation view is created as…
2
votes
2 answers

Rectangle progress bar swiftUI

Hey does someone know how can I create rectangle progress bar in swiftUI? Something like this? https://i.stack.imgur.com/CMwB3.gif I have tried this: struct ProgressBar: View { @State var degress = 0.0 @Binding var shouldLoad: Bool var…
2
votes
4 answers

UINavigationController cuts off content when height is changed? (gif)

I have put a UINavigationController into an expandable "Drawer". My goal is to let each viewController in the navigation stack to have its own "preferred" height. Let's say VC1 needs to be tall. When navigating back to VC1 from VC2 I want it to…
Sti
  • 8,275
  • 9
  • 62
  • 124
2
votes
1 answer

Issue with UINavigationBar large title while popping to non-large translucent bar

I am implementing UINavigationBar for two UIViewController: assume ControllerA and ControllerB. ControllerA has translucent UINavigationBar with backgroundColor = .clear property. ControllerB has prefersLargeTitles enabled property and white…
2
votes
1 answer

Interactive transition between two child view controllers

I'm implementing a custom UIPageViewController so that I can use custom animations between view controllers. I can transition from one view controller to the other with the transition(from:to:duration:options:animations:completion:) method. However…
Morpheus
  • 1,189
  • 2
  • 11
  • 33
2
votes
0 answers

Music App Now Playing View Controller Slide In Animation

I've been trying to recreate the animation and swiping functionality used in the music app, and trying to re-create the card view structure they use. I was wondering if anyone has done this before, or knew how apple accomplished the swipe in, swipe…
Sulaiman Majeed
  • 501
  • 2
  • 7
  • 21
2
votes
1 answer

Objective-c animation with constraints instability issue for trailing constraint

I'm developing an IOS app using objective-c. I came across with an instability problem when animating a view's constraints. The animation works well regarding the final position of the frame, but randomly, the trailing(right) constraint is omitted…
Semih Akbas
  • 43
  • 1
  • 5
2
votes
1 answer

How to create animation which animate repeatedly with UIViewPropertyAnimator?

with the UIView.animate: method , we can configure the options and make it [.autoreverse,.repeat]. here is a simple Animation: @IBOutlet weak var v1: UIView! UIView.animate(withDuration: 3, delay: 0, options: [.autoreverse,.repeat], animations:…
Shadi Asi
  • 157
  • 13
2
votes
0 answers

UIView Chain animation with better frame rate and CPU cycles

Here is my Swift Code which i am using to show 3 different view in single cell. func animateBothObjects() { weak var weakSelf = self UIView.animate(withDuration: 1.0, delay: 2.0, options: [.curveEaseIn, .allowUserInteraction],…
Mihir Mehta
  • 13,743
  • 3
  • 64
  • 88
2
votes
0 answers

UICollectionView loading animation like iphone unlock screen

Does anyone know how to achieve UICollectionView loading animation like apple's unlock animation shown below?
Mehdi Ijadnazar
  • 4,532
  • 4
  • 35
  • 35
2
votes
0 answers

Mimic Apple's fingerprint setting flow in Android

I am wondering how Apple implemented the growing fingerprint effect in the fingerprint setting flow. Is it possible in Android? I think it looks like some kind of progress bar in Android, but I am curious about how it works and how it actually…
2
votes
2 answers

CABasicAnimation animationDidStart did called, but animationDidStop never was

I saw a lot of answers about this topic, but can not solve my particular case. Here is a video with complete animation and logging timeline class AnimationDelegate: UIView { deinit { print("AnimationDelegate deinitialized") } …
George
  • 643
  • 9
  • 23
2
votes
2 answers

Sibling of animated UIView goes immediately to Final position

I have 3 UIViews displayed using AutoLayout. UILabel UIView for browsing a calendar. This view is a custom UIView containing a UIView which is in turn containing two UIButtons and a couple of UILabels UiTableView of Appointments View 2 has a…
Pat Long - Munkii Yebee
  • 3,592
  • 2
  • 34
  • 68
2
votes
2 answers

Disable font animation in UIButton

I am animating a view that is sliding down. In the view there is a simple UIButton. The view and the button have fixed widths and heights (I checked with adding a color as background). Although when use: [UIView animateWithDuration:0.3 delay:0…
Ruud Visser
  • 3,381
  • 2
  • 20
  • 19
1 2
3
12 13