HeroTransitions / Hero

Elegant transition library for iOS & tvOS

Home Page:https://HeroTransitions.github.io/Hero/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpectedly found nil while unwrapping an Optional value

rainaakshay opened this issue · comments

What did you do?

I set the hero id for a view, enabled hero and pushed the view controller which had another view with the same hero id

What did you expect to happen?

Everything worked fine until a couple of days ago, but now, the push animation works fine, but

What happened instead?

The app crashed on pop
The error is Unexpectedly found nil while unwrapping an Optional value on HeroContext.swift line 229

Screenshot 2021-01-25 at 1 07 54 AM

General Information

  • Hero Version:
    1.5.0
  • iOS Version(s):
    14.3
  • Swift Version:
    5
  • Devices/Simulators:
    iPhone 11

UPDATE: The issue resolved if I change the push to present and the pop to dismiss