Open Source1 SwiftHub Login ViewController / ViewModel 분석 LoginViewController bindViewModel() override func bindViewModel() { super.bindViewModel() guard let viewModel = viewModel as? LoginViewModel else { return } let segmentSelected = Observable.of(segmentedControl.segmentSelection.map { LoginSegments(rawValue: $0)! }).merge() let input = LoginViewModel.Input(segmentSelection: segmentSelected.asDriverOnErrorJustComplete(), basicLoginTrigger: basicLog.. 2020. 6. 17. 이전 1 다음