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
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ struct EditProfileView: View {
NavigationView {
VStack(alignment: .center) {
Button(action: {
hideKeyboard()
showingImagePicker = true
}, label: {
ZStack {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment