Skip to content

Commit

Permalink
Delete removeRxChilds method.
Browse files Browse the repository at this point in the history
  • Loading branch information
lm2343635 committed Jun 18, 2019
1 parent 8654e85 commit 733bbda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PODS:
- RxCocoa (5.0.0):
- RxRelay (~> 5)
- RxSwift (~> 5)
- RxController (0.3):
- RxController (0.5):
- RxCocoa (~> 5)
- RxFlow (~> 2)
- RxSwift (~> 5)
Expand Down Expand Up @@ -42,12 +42,12 @@ SPEC CHECKSUMS:
Fakery: 476f6d947de432f84703acc830a1e7166330299b
RxBinding: 58be2cf1311165489a66eacb4a3e33932d598a53
RxCocoa: fcf32050ac00d801f34a7f71d5e8e7f23026dcd8
RxController: 3bc5f3950348597eeb0a77f34008067b656eeb8c
RxController: 8974c8fdf3da1e334bea5d74b98287792428553d
RxFlow: ee6f1fdbacfa4ca8926122e466dfba32e3edf73f
RxRelay: 4f7409406a51a55cd88483f21ed898c234d60f18
RxSwift: 8b0671caa829a763bbce7271095859121cbd895f
SnapKit: fd22d10eb9aff484d79a8724eab922c1ddf89bcf

PODFILE CHECKSUM: 2f6e11b870557e69628937de873ffa2335467951

COCOAPODS: 1.7.0
COCOAPODS: 1.7.2
18 changes: 1 addition & 17 deletions RxController/Classes/RxViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,7 @@ open class RxViewController<ViewModel: RxViewModel>: UIViewController {
super.viewWillAppear(animated)
viewModel.controllerWillDisappear()
}

/**
Remove all child view controllers from this parent view controller,
an except list can be specified.
@param excepts: an except list
*/
public func removeRxChilds(excepts: [RxViewController?] = []) {
children.filter {
!excepts.compactMap { $0 }.contains($0)
}.forEach {
$0.willMove(toParent: self)
$0.view.removeFromSuperview()
$0.removeFromParent()
}
}


/**
Add a child view controller to the root view of this parent view controller.
Expand Down

0 comments on commit 733bbda

Please sign in to comment.