Hide unnecessary popover frame as much as possible

This commit is contained in:
Angelo Stavrow 2020-12-11 15:59:47 -05:00
parent 7e6997a821
commit 9aa582dd65
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -21,6 +21,7 @@ struct ActivePostToolbarView: View {
isPresented: $isPresentingSharingServicePicker,
sharingItems: createPostUrl()
)
.frame(width: .zero, height: .zero)
}
Button(action: { publishPost(activePost) }, label: { Image(systemName: "paperplane") })
.disabled(activePost.body.isEmpty || activePost.status == PostStatus.published.rawValue)