Skip to content

Commit

Permalink
refs #734 check toView != fromView
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattello <mail@joemattiello.com>
  • Loading branch information
JoeMatt committed May 5, 2022
1 parent f437fe9 commit e00b904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Transition/HeroTransition+Start.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e00b904

Please sign in to comment.