From e00b9046971b668d8770fd68600f8761b7ee0fd2 Mon Sep 17 00:00:00 2001 From: Joseph Mattello Date: Thu, 5 May 2022 03:20:00 -0400 Subject: [PATCH] refs #734 check toView != fromView Signed-off-by: Joseph Mattello --- Sources/Transition/HeroTransition+Start.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Transition/HeroTransition+Start.swift b/Sources/Transition/HeroTransition+Start.swift index bbc9d573..f6a7630b 100644 --- a/Sources/Transition/HeroTransition+Start.swift +++ b/Sources/Transition/HeroTransition+Start.swift @@ -117,7 +117,7 @@ extension HeroTransition { animator.hero = self } - if let toView = toView, let fromView = fromView { + if let toView = toView, let fromView = fromView, toView != fromView { // if we're presenting a view controller, remember the position & dimension // of the view relative to the transition container so that we can: // - correctly place the view in the transition container when presenting