Move post status badge to ToolbarItemPlacement.status position

This commit is contained in:
Angelo Stavrow 2020-07-30 15:41:20 -04:00
parent 932f3eee90
commit 1c7e2128d6
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -25,7 +25,9 @@ struct PostEditor: View {
}
.padding()
.toolbar {
PostStatusBadge(post: post)
ToolbarItem(placement: .status) {
PostStatusBadge(post: post)
}
}
.onAppear(perform: checkIfNewPost)
.onDisappear(perform: addPostToStore)