wickwirew / Shift

Shift is a simple, declarative animation library for building complex view controller and view transitions in UIKit.
MIT License
213 stars 14 forks source link

pop up exception #2

Open fifisamy opened 3 years ago

fifisamy commented 3 years ago
      transitionContext.containerView.insertSubview(toViewController.view, at: 0)

I have an exception when popup form ViewController

wickwirew commented 3 years ago

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

fifisamy commented 3 years ago

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 commented 3 years ago

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)