From 50241a0d85b381e979e0ac6da8ac343865ff19dc Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Thu, 8 Dec 2022 11:00:06 +0100
Subject: [PATCH] Dismiss keyboard when tapping Save

---
 Sources/ProfileFeature/Controllers/ProfilePhoneController.swift | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Sources/ProfileFeature/Controllers/ProfilePhoneController.swift b/Sources/ProfileFeature/Controllers/ProfilePhoneController.swift
index c7d9e8c7..c9d2858b 100644
--- a/Sources/ProfileFeature/Controllers/ProfilePhoneController.swift
+++ b/Sources/ProfileFeature/Controllers/ProfilePhoneController.swift
@@ -107,6 +107,7 @@ public final class ProfilePhoneController: UIViewController {
       .saveButton
       .publisher(for: .touchUpInside)
       .sink { [unowned self] in
+        view.endEditing(true)
         viewModel.didTapNext()
       }.store(in: &cancellables)
   }
-- 
GitLab