Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Detection of unwind segue usage #22

Open
zfoltin opened this issue Feb 8, 2017 · 2 comments
Open

Detection of unwind segue usage #22

zfoltin opened this issue Feb 8, 2017 · 2 comments
Labels

Comments

@zfoltin
Copy link

zfoltin commented Feb 8, 2017

An @IBAction func unwindToHere(segue: UIStoryboardSegue) { } function in a ViewController is detected as unused when it shouldn't be. The function is used from another ViewController wired up as an Exit segue (eg: to a button to close/dismiss the current VC and unwind the VC stack to a previous one).

@fastred
Copy link
Owner

fastred commented Feb 10, 2017

Thanks for the report! I guess another case is needed in ParserDelegate. Will take a look at it.

@fastred fastred added the bug label Feb 10, 2017
@zfoltin
Copy link
Author

zfoltin commented Feb 10, 2017

Thanks @fastred for looking into it.
This is how it looks roughly in the storyBoard:

<connections>
    <segue destination="Blah-La-lbah" kind="unwind" unwindAction="unwindToHereWithSegue:" id="another-bl-ahh"/>
</connections>

I guess it would be a "segue" case?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants