Skip to content
Snippets Groups Projects
Commit 2be718cc authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

settings: fix crash when presenting image picker

When the text field is active, presenting the image picker
can cause a crash due to text focus resetting.
This patch reset focus before presenting picker.

Change-Id: Ie52302966a61f1cf69e88d0db688536e7160df57
parent 926e5ad6
Branches
Tags
No related merge requests found
...@@ -41,6 +41,7 @@ struct EditProfileView: View { ...@@ -41,6 +41,7 @@ struct EditProfileView: View {
NavigationView { NavigationView {
VStack(alignment: .center) { VStack(alignment: .center) {
Button(action: { Button(action: {
hideKeyboard()
showingImagePicker = true showingImagePicker = true
}, label: { }, label: {
ZStack { ZStack {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment