forked from shadowfacts/Tusker
Hide compose attachment menu when there are no actions
This commit is contained in:
parent
8c67828185
commit
988b9b4793
@ -41,6 +41,7 @@ private struct AttachmentOptionsMenu: View {
|
|||||||
@Binding var recognizingText: Bool
|
@Binding var recognizingText: Bool
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
if attachment.drawingData != nil || attachment.type == .image {
|
||||||
Menu {
|
Menu {
|
||||||
if attachment.drawingData != nil {
|
if attachment.drawingData != nil {
|
||||||
EditDrawingButton(attachment: attachment)
|
EditDrawingButton(attachment: attachment)
|
||||||
@ -54,6 +55,7 @@ private struct AttachmentOptionsMenu: View {
|
|||||||
.padding([.top, .leading], 2)
|
.padding([.top, .leading], 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private struct RecognizeTextButton: View {
|
private struct RecognizeTextButton: View {
|
||||||
let attachment: DraftAttachment
|
let attachment: DraftAttachment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user