Write Post's updatedDate when the PostEditorView is deallocated

This commit is contained in:
Angelo Stavrow 2020-08-27 15:27:30 -04:00
parent 68607478a3
commit 4a7b1a5355
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -47,6 +47,9 @@ struct PostEditorView: View {
addNewPostToStore()
}
})
.onDisappear(perform: {
post.wfPost.updatedDate = Date()
})
}
private func checkIfNewPost() {