Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
27 views

When an animation completes, should the "success" value be passed to "completeTransition"?

I have a class which supports UIViewControllerAnimatedTransitioning. Within is a func named func animateTransition(using transitionContext: UIViewControllerContextTransitioning) Within that, I'm ...
Dan Morrow's user avatar
  • 4,471
1 vote
1 answer
41 views

Animation Bug: When changing directions, the view only animates incorrectly once

I need to create an animation for previous and next questions. The current question should move out and next/prev question should come in. It functions nicely if you keep clicking Next. Current ...
nirav dinmali's user avatar
0 votes
0 answers
41 views

UIKit Animating different views from one view controller to another view controller

I'm currently working on creating an animation in UIKit, and I'd like to explain my goal. In my first view controller, I have a layout that includes a horizontal stack view and an image view. When a ...
Turtle's user avatar
  • 11
0 votes
1 answer
45 views

Custom present transition for 2 nested view controllers with 2 simultaneous animations?

I have 2 nested view controllers with different animations. First one has alpha animation and second one moves from bottom to top with constraint. My current implementation is just show/hide methods ...
Gargo's user avatar
  • 1,369
0 votes
1 answer
263 views

Animate Addition/Removal of View in SwiftUI

I have created a bottom alert that I want to animate when it is to be presented or removed. Currently it is not doing any animation, only showing up and removing itself when needed. I've tried using ....
Noah Iarrobino's user avatar
0 votes
1 answer
27 views

Flip Horizontal Segue between view controllers but in opposite direction (compared to default)

I'm using Xcode 12, and I want to make the flip horizontal transition in the opposite direction. Right now, it goes from right to left, but I want to make it go from left to right. Any ideas?
something's user avatar
1 vote
1 answer
2k views

How to use completion block for UIView.animate()?

I'm working on a project to learn animations and am having trouble using the completion block for the UIView.animate(withDuration:) func. MY animation is a shoebox that falls from the top of the ...
JonGrimes20's user avatar
0 votes
1 answer
34 views

Different transition for each view in same view controller swift?

Hi guys ı am stucked when ı try to present view controller . I split my main view to two views my desire is top view comes with .crossdisolve transition and below view comes with fade in transition . ...
sait cihaner's user avatar
1 vote
0 answers
477 views

How to start the transition animation after the user sees the collection view cell?

i am creating a simple walkthrough page and using collectionview for it. I want show to users a simple transition animation in the last cell. I use the willdisplaycell method to do this but the ...
SwiftTry's user avatar
  • 151
1 vote
1 answer
929 views

SwiftUI: How do I transition gracefully when parent view changes?

I have a view that starts setup like this. var body: some View { switch appState.userFlow { case .onboarding: Text("Not Yet Implemented") case .login: ...
xTwisteDx's user avatar
  • 2,432
0 votes
1 answer
630 views

Why does my UIView.Transition not work unless wrapped in a UIView.Animate block?

I am using a UIView.transition to flip a card over. While troubleshooting it not working, I stumbled upon a way to make it work - but I have no idea why. I am hoping that someone can look at the two ...
Jim's user avatar
  • 75
0 votes
1 answer
186 views

UIDatePicker's Change Year Arrow's Animation Transition

What is the animation transition used in the right-arrow image to the down-arrow image when changing the year in the UIDatePicker control? The animation smoothly rotates the start image to the end ...
Kaplan's user avatar
  • 121
0 votes
1 answer
139 views

Swift -- When removing UIView (animated) it stays on screen

I have the following code in Swift. The problem is when it is executed, it performs the animation, but the window stays in its original position as shown in the gif I attached. UIView....
Jorge's user avatar
  • 1
2 votes
2 answers
271 views

How to animate constraints one by one in IOS?

I have 6 views. I want to animate the constraints one by one, ie, i need the animation on second view only after first, then after second the third and so on. I have added the code in the completion ...
Amal T S's user avatar
  • 3,385
0 votes
1 answer
51 views

UIViewControllerAnimatedTransitioning transtionsDuration and UIView.Animate

I have a subclass of UIViewControllerAnimatingTransitioning which defines an animations in a method animateTransitioning(using:) with UIView.animate(withDuration: 1) and second one UIView.animate(...
Blazej SLEBODA's user avatar
0 votes
0 answers
262 views

How to disable UINavigationBar Animation when the UIPercentDrivenInteractiveTransition is cancelled

I have implemented a custom interactive transition for detecting the middle screen swipe with the UIPanGestureRecognizer along with UIPercentDrivenInteractiveTransition and animating it with ...
Kanottonp's user avatar
1 vote
1 answer
188 views

UIView.transition animation It only works once, a second time the picture just disappears

How to make the animation consistent? func addBlurTo(_ image: UIImage) -> UIImage? { guard let ciImg = CIImage(image: image) else { return nil } let blur = CIFilter(name: "CIGaussianBlur")...
Nikolay Nikolaenko's user avatar
0 votes
0 answers
268 views

Custom modal presentation with floating bottom bar

I have an unusual UI requirement that I believe requires a custom modal presentation style, of some sort. I effectively need a floating bottom bar combined with the default pageSheet animation, for an ...
Friendly King's user avatar
0 votes
1 answer
435 views

UIView Animation completed instantly

So I've been working on a personal project, where I wanted to apply everything I have learned, but I have encountered this problem. I have simplified this problem into this easy app. import UIKit ...
Pepa's user avatar
  • 51
1 vote
1 answer
880 views

Problem with animation when using UIView.transition & UIView.AnimationOptions when transitioning between ViewControllers

I'm using Swift and attempting to transition between a Menu screen ViewController (LaunchViewController) and a Game ViewController (InGameViewController) using the below code. However, whilst the ...
ecjps82's user avatar
  • 13
1 vote
1 answer
1k views

Trigger animation on Cancel when UIPercentDrivenInteractiveTransition ends half

Is it a good practice to force custom transition back to original position for a view controller if the interaction ends and animation is cancelled. I have the following implementation which decides ...
DesperateLearner's user avatar
2 votes
1 answer
2k views

Swift - Present a UIView (not a ViewController)

I have two UIViewControllers and I would like to .present the gray UIView like you would usually present a ViewController (appearing bottom up and user can slide down to dismiss). Screenshots for a ...
user avatar
0 votes
2 answers
110 views

How to tweak large title in order to keep the transition but hide the large title itself?

From a UITabbarViewController I have a root view controller CarDetails as in the first image. This VC can scroll upwards as shown in the second image, with the large title transitioning to regular ...
Stéphane de Luca's user avatar
3 votes
2 answers
1k views

animateTransition no longer working on modally presented viewController in iOS 13

I have been using the following method in my custom Animator class for a transition when a user selects a imageView in a cell of a tableViewController to a focus view showing the enlarged image. The ...
alionthego's user avatar
  • 9,413
1 vote
1 answer
331 views

CGAffineTransform messing up ViewFrame

I have an UIViewControllerAnimatedTransitioning where one of the animations is an scale using CGAffineTransform toView.frame.origin.y = containerView.frame.size.height - toView.frame.height fromView....
RodolfoAntonici's user avatar
2 votes
1 answer
300 views

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....
Raman Shestakou's user avatar
1 vote
1 answer
744 views

Using UIPercentDrivenInteractiveTransition with CABasicAnimation has weird glitch

I'm implementing custom transition using CABasicAnimation and UIView.animate both. Also need to implement a custom interactive transition using UIPercentDrivenInteractiveTransition which exactly ...
V.V.V's user avatar
  • 255
0 votes
0 answers
81 views

How to change the transition animation of an app?

I am developing an app in ionic 4 and this has a gallery section and that for now gives a user experience that leaves much to be desired. I would like to change the transition animation of an ...
juan carlos sanchez's user avatar
1 vote
0 answers
218 views

UIAlertController freezes the UI when presented after pausing the layer animation

In a ViewController, I am performing a transition animation on a view. On a button action, the transition animation is paused by setting the layer speed equals to zero. But, when the alert is ...
cherry_4's user avatar
  • 188
0 votes
1 answer
1k views

Autolayout error on height anchor when animation constraints

I have a requirement to render a UIView at the footer of my app, when the user takes some sort of action, that view scrolls to the top of the view and fixes in position. Imagine almost a tab bar view ...
Tim J's user avatar
  • 1,271
2 votes
2 answers
71 views

iOS: UILabel is not centered while expanding view with UIViewControllerTransitioningDelegate

I am trying to present modally a view when tapping a button, that would have at first the same frame than the button, and then expanding to end up full screen, all this using ...
Rob's user avatar
  • 4,194
0 votes
0 answers
63 views

how to do UIView Intrective Animation in swift 3?

i want do Animation just Like same as Below Link: https://dribbble.com/shots/4853929-View-Photos i also tried many 3rd party Library but am not getting exactly animation just like Above Link. var ...
princ___y's user avatar
  • 1,089
-2 votes
1 answer
255 views

UIView transition problem from bottom to up

In my application I want to animate a view from bottom to up in override func viewDidLayoutSubviews(). So far I have done this way to transit the view from bottom but in different device it is showing ...
Emon's user avatar
  • 462
0 votes
2 answers
1k views

iOS Swift: Custom interactive transition

I wrote a custom swipe transition that works fine on a modal presentation. But in a push presentation the "to" view position is not animating. I've tried the same code with switching the translation ...
Andre's user avatar
  • 7,588
0 votes
2 answers
169 views

Add transition in custom camera

I am implementing a custom camera. All is working perfectly. I want to add transition while switching from front to back and vice versa. Here is my code. @IBAction func switchCamera(_ sender: ...
Arinjay's user avatar
  • 69
0 votes
1 answer
340 views

Transition animation from one view controller to another view controller

I have 2 view controller with navigation controller. I'm pushing one firstViewController to secondViewController. i'm currently using [self.navigationController pushViewController:...
wes. i's user avatar
  • 628
0 votes
2 answers
854 views

Animate isHighlighted state of an imageView inside a cell of a collection view

I am stumbling into an issue with isHighlighted state of an imageView inside a cell of a collection view: I cannot manage to animate the transition between 2 images the way I aim for. Each custom ...
Chris's user avatar
  • 325
0 votes
1 answer
155 views

Incorrect preferredStatusBarStyle when controller animated transitioning is canceled

I have a UITabViewController which embeds some UIViewControllers. These controllers could have a different preferredStatusBarStyle. I use a UIViewControllerAnimatedTransitioning+...
Davide Pagin's user avatar
3 votes
1 answer
2k views

How to solve this problem with custom transition in iOS?

I built a class to implement a circular transition between view controllers. When I hit the button to navigate to the other view controller a circle starts growing from the button until it fills the ...
Lucas's user avatar
  • 766
1 vote
1 answer
84 views

viewController Present when I dismissed it

I have a viewcontroller which is segue to a tableViewController and I want to present it with transition and as a sideMenu from top I find some code and it's working fine but i cant understand the ...
teodik abrami's user avatar
2 votes
1 answer
266 views

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 ...
BlackWolf's user avatar
  • 5,519
0 votes
2 answers
436 views

ScrollView v Custom Transition (Swift)

I am making an app where you basically answer questions and then swipe left to get the next question. I like the transition of scroll views and would like to emulate that. I was wondering whether it ...
connorvo's user avatar
  • 801
1 vote
1 answer
116 views

IOS12 Flip TransitionWith: not working properly

Developing a heavy duty UI app, I've been reported form the QA team that the "Flip" of our views stopped working properly. Aster testing the issue We noticed that this Issue is only for IOS12. If you ...
Erez's user avatar
  • 1,943
1 vote
0 answers
149 views

Unable to get the correct frame for UIViewControllerAnimatedTransitioning to UIPageViewController

I have been battling this transition animation and I am pretty much out of ideas. I am attempting something similar to going from the collection to the individual photos in the Photos app on iOS. It ...
Martin Westin's user avatar
0 votes
1 answer
2k views

Swift Custom Transition Not Working (UIViewControllerTransitioningDelegate not called)

I am just trying to switch to a second view controller. I have my HomeViewController with this extension: extension HomeViewController: UIViewControllerTransitioningDelegate { func ...
Connor V's user avatar
  • 241
1 vote
1 answer
489 views

Slide animation with UIView Transition?

I am setting a new navigation root. I want to show the animation when navigation is set. I am able to set the flip & curl animation with below code. UIView.transition(with: self.window!, duration:...
TechChain's user avatar
  • 8,834
2 votes
1 answer
633 views

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 ...
cmii's user avatar
  • 3,616
0 votes
1 answer
122 views

How to use the UInavigationcontroller animation with library Motion?

I came across a library call Motion on GitHub which provide sets of transition on view and controllers. Based on the website, to use the animation on navigation controller we need to create a new ...
klkl's user avatar
  • 27
1 vote
0 answers
332 views

Swift, Hero Transition Framework crash on self.isHeroEnabled = true

The app crashes when enabling Hero Framework in destination ViewController whether it was set through the code or storyboard. What could be the reason? Console says: *** Terminating app due to ...
Ivan Rzhanoi's user avatar
0 votes
0 answers
45 views

How do i create a rectangular slab which filled gradually with some time interval

How do I make a rectangular slab like this: In this slab will fill gradually with time and with different color. What I have tried is ParentView(with light Color) - > ChildView With dark Color (...
Amit Kumar's user avatar

1
2 3 4 5
9