mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add share button next to publish button on iOS
This commit is contained in:
parent
96e80ffdd7
commit
9e291af377
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user