Skip to content

Add SegueManager/R.swift example #1

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

Closed
wants to merge 1 commit into from
Closed

Add SegueManager/R.swift example #1

wants to merge 1 commit into from

Conversation

tomlokhorst
Copy link

R.swift has been designed to work well with my SegueManager library.

Although your post is titled "Swift Asset Code Generators" (which SegueManager isn't), it also talks about segues.
So I thought I'd show an example of how R.swift and SegueManager work together to allow you to perform a segue with a (typed) closure:

performSegue(R.segue.detailViewController.imageView) { segue in
  segue.destinationViewController.imageToShow = R.image.lolwut()
}

As mentioned in your post, at the moment R.swift doesn't restrict segues from being performed on the wrong view controller. But this is being worked on: mac-cain13/R.swift.Library#2

@Pretz
Copy link
Owner

Pretz commented Feb 5, 2016

@tomlokhorst Thanks for the update! I'll take some time this weekend to update my blog post to mention SegueManager and merge these changes.

@tomlokhorst tomlokhorst closed this by deleting the head repository Jan 8, 2023
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.

2 participants