Closed albinekcom closed 7 years ago
👍
This PR breaks the basic show() functionality if you have more than one view controller pushed in the current window - e.g It'll work on a root view controller, but not if a child view controller I pushed upon that. I would argue that .last should be used instead of .first (an also unwrapped gracefully instead of forcefully). I'll submit a PR fixing this.
This is a quick workaround but in the future it should be coded in a safer way.