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
vote
0 answers

Solar system like interactive 3d animation in iOS and Android

I need to implement a solar system like 3d interactive menu animation for my application, where i can scroll through through sub items and should able to select the items, I don't know how to achieve this in both android and ios any libraries are…
Anshad Rasheed
  • 2,526
  • 1
  • 14
  • 32
1
vote
1 answer

2 page view using UIPageViewController

I am trying to create a TWO-PAGE view same like a open book with curl effect. Sample Image attached here - To achieve this, there is a one library named "leaves" using which this can be achieved, but this library is obsoleted, and i want to…
Wolverine
  • 4,264
  • 1
  • 27
  • 49
1
vote
0 answers

SetBackgroundImage prevents animation to run properly

For some reason my animation does not run properly when I change the background of my button. I am new to animations was trying something new. I don't really need to change the background but it was how I had it in sketch and in my opinion it looks…
1
vote
0 answers

The location is wrong after use transitionFromView in swift

I use transitionFromView switch two UIView ,But there is somethine wrong with it , When I transition the view to second UIView ,it work ok, then I transition the view back The error is happen(the location of first UIView is wrong) What…
jansma
  • 1,605
  • 1
  • 15
  • 22
1
vote
0 answers

Button does not respond to taps during animation

I have drawn a circular path for a button (scienceCircle)- var sciencePath = UIBezierPath() sciencePath.moveToPoint(CGPoint(x: 228, y: 132)) sciencePath.addCurveToPoint(CGPoint(x: 228, y: 132), controlPoint1: CGPoint(x: 208, y: 153),…
Krish Wadhwana
  • 1,544
  • 2
  • 12
  • 24
1
vote
1 answer

Custom Interactive transition with CABasicAnimation(CAAnimation)

I want build interactive transition with UIViewAnimation.But there's few layer property that I can animate it.So i decided use the CAAnimation. I wanna change the ViewController's view mask,Here is the…
1
vote
2 answers

iOS how to start image off screen and animate it onto the screen

I am trying to slide an image from off the screen onto the screen from the left and stopping at the center point in the view. I would like to keep it contrained at the y position if possible (IE image is set in story board). I am reading this…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
1
vote
1 answer

I have to double click a button for an animation to work. It does not work on single click

I have created a button called runButton, and I want some labels to get unhidden, and I also want a visual effect with blur to appear. The visual effect with blur has a width and height of 0 in the viewDidLoad function. I want the animation to…
Krish Wadhwana
  • 1,544
  • 2
  • 12
  • 24
0
votes
1 answer

How do I pass FocusState through a ViewModifier?

I'm trying to create a ViewModifier that moves a field to the top of the screen when it becomes focused. The effect I want is achieved when I pass through boolean binding that gets toggled using a button, like so: import SwiftUI let movableFieldID…
Tres
  • 1,445
  • 1
  • 12
  • 23
0
votes
0 answers

Chaining transition. second one not triggered

the scenario is the following. I tap a button, the button move to the center of the view. after a few moment the button should slide to the left and disappear. the second part is never triggered. struct WelcomeScreen: View { @State private…
Keuha
  • 295
  • 3
  • 18
0
votes
0 answers

Wrap frame after rotation3DEffect modifier

I have a view that is two halves of an Image, which I'm attempting to make a folding accordion style animation. As the viewed angle increases towards 90 degrees, the view should be increasingly closer to a height of 0. struct HeroModuleView: View { …
xTwisteDx
  • 2,152
  • 1
  • 9
  • 25
0
votes
1 answer

Xamarin Lottie Animation Ios bug

Description I am working in a company where the marketing team are creating animation files via Adobe and exporting them as lottie json files for my application. Problem Most of the animation are working corectly on android devices, without…
0
votes
0 answers

How do I run the button animation I made with the Rive app with Xcode? -Sorry for bad english, I'm using translation

I'm trying to make the mobile application in a video I watched, but it doesn't explain in full detail, so I have difficulty doing the operations. I want to tell you where I have problems. Thanks I'm describing the problem I'm having and waiting for…
0
votes
1 answer

WrappingHStack doesn't animate (transition) into view

I have a view with a WrappingHStack in it. The view has withAnimation when it is displayed, with .transition(.move(edge: .bottom)) as the transition on it. WrappingHStack: https://github.com/dkk/WrappingHStack In the following code, everything in…
Joseph
  • 691
  • 4
  • 18
0
votes
1 answer

How to get resizing of UILabel objects with constraints to animate smoothly?

I have a vertical rectangle -- a simple UIView -- that is divided into 4 sections, sort of like a pie chart, and each section will grow and shrink dynamically (as data rolls in), and I'm trying to get that to happen smoothly. Am using constraints to…
Alyoshak
  • 2,696
  • 10
  • 43
  • 70