Questions tagged [uiviewanimationtransition]

Specifies a transition to apply to a `UIView` in an animation block.

407 questions
2
votes
1 answer

UITableView.reloadRows resets row animation type when gets called inside Timer.scheduledTimer

I'm looking for delayed row animation with RowAnimation type 'bottom' and with specific duration for pushing rows to table view. So far I found two options: Call UITableView.reloadRows inside UIView.transition to set animation duration, call…
2
votes
1 answer

Interrupt UIView transition

Is there any possibility to interrupt a UIView.transition at its current state on iOS? To give you a bit of context: I have a UIButton where I need to animate the title color - the animation can have different delays attached to it, though. Since…
BlackWolf
  • 5,239
  • 5
  • 33
  • 60
2
votes
1 answer

How to create a navigation transition like the Apple news app?

I found this article to create a navigation transition like the Apple news app: https://blog.rocketinsights.com/how-to-create-a-navigation-transition-like-the-apple-news-app/. The transition is a zoom effect. The code works great for push animation,…
cmii
  • 3,556
  • 8
  • 38
  • 69
2
votes
1 answer

Why viewWillTransition method call in all view controllers when rotate the app?

My application is tab based navigation. I am using Xcode9 with iOS11. For support landscape/portrait compatibility I am using the following method in my all viewControllers. override func viewWillTransition(to size: CGSize, with coordinator:…
IKKA
  • 6,297
  • 7
  • 50
  • 88
2
votes
0 answers

Show View rotated at a specific angle and get view back when touched?

I am creating a card game. I want to show cards rotated at bottom of screen along with if i touch on a card it slides a little upward and on second touch goes back to original position. I have done a simple arrangement also I am able to move card…
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
2
votes
0 answers

UIViewController Custom Transition gives wrong type of the "from" ViewController from TransitionContext

I am making a custom transition for ViewController Presentation. What I have encountered is the fromViewController in the TransitionContext has the wrong type of class. It should be UICustomXXXXXViewController whereas it is shown as…
2
votes
1 answer

Adding a custom transition causes xib to load for the wrong screen size

I'm trying to add a custom transition to a UIViewController which has a xib. I have tried a few approaches but they all have the same issue, the view displays for the wrong screen size. My current example is based on the following tutorial: Custom…
Leon
  • 3,614
  • 1
  • 33
  • 46
2
votes
4 answers

UIView transition animation not executing

I'm trying to use an animation transition for when a UIView appears on screen. The UIView appears correctly but the animation doesn't occur when it appears. override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) …
SwiftyJD
  • 5,257
  • 7
  • 41
  • 92
2
votes
0 answers

UIView.transition(from:to:) not working as expected

I have a weird problem with UIView.transition(from:to:) My setup looks like the following: UIView (root) UIView (front, isHidden false) UIImageView (back, isHidden true) This view is inside my view controller Now, I want to flip the front…
skaldesh
  • 1,325
  • 3
  • 15
  • 37
2
votes
0 answers

How to animate with duration setContentOffset of collectionView?

I am having an issue using UIView.animate(withDuration) on a collectionView. Here is the code I am using: UIView.animate(withDuration: duration, delay: 0, options: [.curveEaseOut, .allowUserInteraction], animations: { …
mvc001
  • 21
  • 2
2
votes
0 answers

iOS custom animation to replace a subview

I have an app with a ViewController that contains a headerView, the headerView is just a container which should hold other views. The views inside the headerView are the views I want to replace at runtime with an animation. I want the oldView (which…
2
votes
0 answers

Animate UIView with the default UINavigationInteractiveTransition interactive

In my app I would like to animate a UIView along the default UINavigationInteractiveTransition. It's working like a charm when I don't use the interactive PanGesture. Is there a way to react about the current state of the interactive animation via…
2
votes
0 answers

UIViewController Interactive Transition error when cancelled

I have a custom transition between one UIViewController (VC1) and a modal UIViewController (VC2). I do it interactively to hide VC2 with UIPanGestureRecognizer. When the pan gesture finishes and the translation in the y axis is equal or more than…
Adrià Carro
  • 697
  • 1
  • 10
  • 22
2
votes
0 answers

Pushing to transparent view controller transition issue

I have such view hierarchy. My Window rootViewController is TabBarController with some nice background image loaded into ImageView. Now on top of it I want to have under one TabBar the NavigationController. Every View Controller in this…
2
votes
4 answers

Preserve custom tabbar view state between view controllers

We have a custom view, which looks like a tabbar but is ultimately a subclass of UIView. The view is shown as a tabbar would at the bottom of a UIViewController. When an image is touched in the view controller we transition to another view…
StuartM
  • 6,743
  • 18
  • 84
  • 160