Add share button next to publish button on iOS

This commit is contained in:
Angelo Stavrow 2020-09-28 17:28:34 -04:00
parent 96e80ffdd7
commit 9e291af377
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -88,7 +88,14 @@ struct PostEditorView: View {
ToolbarItem(placement: .principal) {
PostEditorStatusToolbarView(post: post)
}
ToolbarItem(placement: .primaryAction) {
ToolbarItemGroup(placement: .navigationBarTrailing) {
Button(action: {
sharePost()
}, label: {
Image(systemName: "square.and.arrow.up")
})
.disabled(post.postId == nil)
Button(action: {
publishPost()
}, label: {