generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ :: [#130] InputDialogFeature / InputDialog Binding
- Loading branch information
Showing
4 changed files
with
153 additions
and
6 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
Projects/Feature/InputDialogFeature/Interface/Factory/InputDialogFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
import BaseFeatureInterface | ||
import UIKit | ||
|
||
public protocol InputDialogFactory { | ||
func makeViewController( | ||
title: String, | ||
placeholder: String, | ||
inputType: InputType, | ||
confirmAction: @escaping (String) async -> Void | ||
) -> any RoutedViewControllable | ||
} |
14 changes: 14 additions & 0 deletions
14
Projects/Feature/InputDialogFeature/Sources/Factory/InputDialogFactoryImpl.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import BaseFeatureInterface | ||
import InputDialogFeatureInterface | ||
|
||
final class InputDialogFactoryImpl: InputDialogFactory { | ||
func makeViewController( | ||
title: String, | ||
placeholder: String, | ||
inputType: InputType, | ||
confirmAction: @escaping (String) async -> Void | ||
) -> any RoutedViewControllable { | ||
let store = InputDialogStore(confirmAction: confirmAction) | ||
return InputDialogViewController(title: title, placeholder: placeholder, store: store) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters