Skip to content

Commit 01bfe7e

Browse files
committed
Call PostListModel.remove() async on main queue
1 parent d129c0d commit 01bfe7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Shared/Navigation/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct ContentView: View {
2020
primaryButton: .destructive(Text("Delete"), action: {
2121
if let postToDelete = model.postToDelete {
2222
model.selectedPost = nil
23-
withAnimation {
23+
DispatchQueue.main.async {
2424
model.posts.remove(postToDelete)
2525
}
2626
model.postToDelete = nil

0 commit comments

Comments
 (0)