mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Complete functions
This commit is contained in:
@@ -38,10 +38,10 @@ final class EnterPinCodeCoordinator: EnterPinCodeCoordinatorType {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
init(session: MXSession?) {
|
||||
init(session: MXSession?, viewMode: SetPinCoordinatorViewMode) {
|
||||
self.session = session
|
||||
|
||||
let enterPinCodeViewModel = EnterPinCodeViewModel(session: self.session)
|
||||
let enterPinCodeViewModel = EnterPinCodeViewModel(session: self.session, viewMode: viewMode)
|
||||
let enterPinCodeViewController = EnterPinCodeViewController.instantiate(with: enterPinCodeViewModel)
|
||||
self.enterPinCodeViewModel = enterPinCodeViewModel
|
||||
self.enterPinCodeViewController = enterPinCodeViewController
|
||||
@@ -61,6 +61,14 @@ final class EnterPinCodeCoordinator: EnterPinCodeCoordinatorType {
|
||||
// MARK: - EnterPinCodeViewModelCoordinatorDelegate
|
||||
extension EnterPinCodeCoordinator: EnterPinCodeViewModelCoordinatorDelegate {
|
||||
|
||||
func enterPinCodeViewModelDidComplete(_ viewModel: EnterPinCodeViewModelType) {
|
||||
self.delegate?.enterPinCodeCoordinatorDidComplete(self)
|
||||
}
|
||||
|
||||
func enterPinCodeViewModelDidCompleteWithReset(_ viewModel: EnterPinCodeViewModelType) {
|
||||
self.delegate?.enterPinCodeCoordinatorDidCompleteWithReset(self)
|
||||
}
|
||||
|
||||
func enterPinCodeViewModel(_ viewModel: EnterPinCodeViewModelType, didCompleteWithPin pin: String) {
|
||||
self.delegate?.enterPinCodeCoordinator(self, didCompleteWithPin: pin)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user