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

VC's did/will (dis)appear #100

Merged
merged 3 commits into from
Apr 18, 2016
Merged

Conversation

RuiAAPeres
Copy link
Member

No description provided.

private func triggerForSelector(selector: Selector) -> Signal<(), NoError> {
return self
.rac_signalForSelector(selector)
.rex_toSignal()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use rex_toTriggerSignal() from #99 ?

@mdiep
Copy link
Contributor

mdiep commented Apr 16, 2016

It might be nice to add the appear methods while you're at it. It seems natural to want both if you want one.

@RuiAAPeres RuiAAPeres changed the title VC's did/will disappear VC's did/will (dis)appear Apr 16, 2016
return triggerForSelector(#selector(UIViewController.viewWillAppear(_:)))
}

private func triggerForSelector(selector: Selector) -> Signal<(), NoError> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should triggerForSelector be inside extension of NSObject (or UIResponder) ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@335g Looking at UIResponder documentation, I don't think so. I might be missing something.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, It might be good in this 👍

@neilpa
Copy link
Member

neilpa commented Apr 18, 2016

Awesome!

@neilpa neilpa merged commit 7463b73 into RACCommunity:master Apr 18, 2016
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.

5 participants