mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Write Post's updatedDate when the PostEditorView is deallocated
This commit is contained in:
parent
68607478a3
commit
4a7b1a5355
@ -47,6 +47,9 @@ struct PostEditorView: View {
|
||||
addNewPostToStore()
|
||||
}
|
||||
})
|
||||
.onDisappear(perform: {
|
||||
post.wfPost.updatedDate = Date()
|
||||
})
|
||||
}
|
||||
|
||||
private func checkIfNewPost() {
|
||||
|
Loading…
Reference in New Issue
Block a user