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

SegueGenerator: Skip segues that have an empty identifier #555

Merged
merged 3 commits into from Sep 16, 2019

Conversation

mbernson
Copy link
Collaborator

This PR causes the generator to skip any segues with an empty string identifier.

For some types of segues, such as from a UIButton to another view controller, a segue identifier is not required. When it is required, for example in a view controller initiated segue, Xcode will warn the user about it already, so R.swift doesn't need to warn about either case.

I'm not sure if I fixed it in the correct place, please let me know if you know a better way. :)

Closes #525

@tomlokhorst
Copy link
Collaborator

Thanks for this PR!

@tomlokhorst tomlokhorst merged commit 4420b89 into mac-cain13:master Sep 16, 2019
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.

Warnings are generated for segues with an empty identifier where they shouldn't be
2 participants