Skip to content

Commit

Permalink
creation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m1rosh committed May 21, 2024
1 parent b6c463c commit e25a59d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LiveRecipes/Modules/Creation/CreationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ struct CreationView: View {
textButritionalValueFats: textButritionalValueFats,
textButritionalValueCarbohydrates: textButritionalValueCarbohydrates,
image: image)
self.presentationMode.wrappedValue.dismiss()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.75) {
self.presentationMode.wrappedValue.dismiss()
}
}) {
Text("creation.button.save".localized)
.foregroundColor(.white)
Expand Down

0 comments on commit e25a59d

Please sign in to comment.