Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in default show() methods #63

Merged

Conversation

albinekcom
Copy link
Contributor

This is a quick workaround but in the future it should be coded in a safer way.

@corin8823 corin8823 merged commit 08e1a78 into corin8823:master Apr 2, 2017
@corin8823
Copy link
Owner

👍

@jimmaye
Copy link
Contributor

jimmaye commented Apr 10, 2017

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.

corin8823 added a commit that referenced this pull request Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants