Set PostStatus to .published if Publish button is tapped in PostEditor

This commit is contained in:
Angelo Stavrow 2020-07-31 13:44:30 -04:00
parent dd5a543e19
commit 6fb33fd651
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -30,7 +30,7 @@ struct PostEditor: View {
}
ToolbarItem(placement: .primaryAction) {
Button(action: {
print("Publish button tapped!")
post.status = .published
}, label: {
Image(systemName: "paperplane")
})