Shift icon indicating copy to clipboard operation
Shift copied to clipboard

pop up exception

Open fifisamy opened this issue 4 years ago • 3 comments

      transitionContext.containerView.insertSubview(toViewController.view, at: 0)

I have an exception when popup form ViewController

fifisamy avatar Sep 29 '21 15:09 fifisamy

Can you give some more information? Whats the exception you receive? What file? A code snippet to reproduce it would be helpful as well

wickwirew avatar Sep 29 '21 16:09 wickwirew

file. name NavControllerTrasntitionDismissing.swift
error name "attempt to recover by breaking constraint" with quickly close shift animated activity

the error show in this code :
using transitionContext: UIViewControllerContextTransitioning) { guard let fromViewController = transitionContext.viewController(forKey: .from), let toViewController = transitionContext.viewController(forKey: .to) else { return }

        // Here the error
    transitionContext.containerView.insertSubview(toViewController.view, at: 0)
    

fifisamy avatar Sep 30 '21 08:09 fifisamy

file. name NavControllerTrasntitionDismissing.swift error name "attempt to recover by breaking constraint" with quickly close shift animated activity

the error show in this code : using transitionContext: UIViewControllerContextTransitioning) { guard let fromViewController = transitionContext.viewController(forKey: .from), let toViewController = transitionContext.viewController(forKey: .to) else { return }

    // Here the error
transitionContext.containerView.insertSubview(toViewController.view, at: 0)

fifisamy avatar Sep 30 '21 10:09 fifisamy