Skip to content

Conversation

@kentcb
Copy link
Contributor

@kentcb kentcb commented Jun 7, 2015

This PR fixes #867 by renaming and obsoleting the old ViewModelViewHost and implementing a new one that is a view controller. It takes care of adding the child view controller into the view controller hierarchy as well as adding the view itself as a subview. In addition, disposal has been cleaned up somewhat (previous view controller is disposed if a new view controller takes its place, such as when the VM changes).

The old ViewModelViewHost has been renamed to ViewModelViewHostLegacy and marked as obsolete. This will intentionally break people's code if they upgrade to RxUI 7 but still give them an easy-out if they insist on sticking with the old way of doings things. Of course, the intention is to eventually remove ViewModelViewHostLegacy altogether, so the obsolete warning is helpful in that regard.

…Host and creating a new one that is a view controller.
@anaisbetts
Copy link
Member

Thanks!

anaisbetts added a commit that referenced this pull request Jul 14, 2015
Make iOS ViewModelViewHost an actual view controller
@anaisbetts anaisbetts merged commit e40d68c into reactiveui:rxui7-master Jul 14, 2015
@anaisbetts
Copy link
Member

/cc #850

@ghuntley ghuntley modified the milestone: 7.0.0 Nov 6, 2016
@lock lock bot locked and limited conversation to collaborators Jun 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants