Skip to content
Snippets Groups Projects
Commit ac0dbc8a authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Merge branch 'fix/hud-keyboard' into 'dev'

Fix keyboard remaining up when hud is being displayed

See merge request elixxir/client-ios!81
parents 5a067eb9 4b93b222
No related branches found
No related tags found
1 merge request!81Fix keyboard remaining up when hud is being displayed
......@@ -14,6 +14,7 @@ public struct HUDModel {
content: String? = nil,
actionTitle: String? = nil,
hasDotAnimation: Bool = false,
isAutoDismissable: Bool = false,
onTapClosure: (() -> Void)? = nil
) {
self.title = title
......@@ -21,7 +22,7 @@ public struct HUDModel {
self.actionTitle = actionTitle
self.onTapClosure = onTapClosure
self.hasDotAnimation = hasDotAnimation
self.isAutoDismissable = onTapClosure == nil && !hasDotAnimation
self.isAutoDismissable = isAutoDismissable
}
public init(
......
......@@ -68,6 +68,7 @@ public final class RootViewController: UIViewController {
return
}
add(hudView: HUDView().setup(model: model))
view.endEditing(true)
}.store(in: &cancellables)
}
}
......
......@@ -66,6 +66,7 @@ final class SearchLeftViewModel {
hudManager.show(.init(
actionTitle: Localized.Ud.Search.cancel,
hasDotAnimation: true,
isAutoDismissable: false,
onTapClosure: { [weak self] in
guard let self else { return }
self.didTapCancelSearch()
......@@ -114,6 +115,7 @@ final class SearchLeftViewModel {
hudManager.show(.init(
actionTitle: Localized.Ud.Search.cancel,
hasDotAnimation: true,
isAutoDismissable: false,
onTapClosure: { [weak self] in
guard let self else { return }
self.didTapCancelSearch()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment