diff --git a/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentsListController.swift b/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentsListController.swift index 15b9b92188..611a2dd304 100644 --- a/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentsListController.swift +++ b/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentsListController.swift @@ -131,9 +131,9 @@ class AttachmentsListController: ViewController { @Environment(\.horizontalSizeClass) private var horizontalSizeClass var body: some View { + attachmentsList + Group { - attachmentsList - if controller.parent.config.presentAssetPicker != nil { addImageButton .listRowInsets(EdgeInsets(top: cellPadding / 2, leading: cellPadding / 2, bottom: cellPadding / 2, trailing: cellPadding / 2)) @@ -147,6 +147,10 @@ class AttachmentsListController: ViewController { togglePollButton .listRowInsets(EdgeInsets(top: cellPadding / 2, leading: cellPadding / 2, bottom: cellPadding / 2, trailing: cellPadding / 2)) } + #if os(visionOS) + .buttonStyle(.bordered) + .labelStyle(AttachmentButtonLabelStyle()) + #endif } private var attachmentsList: some View { @@ -246,3 +250,11 @@ fileprivate struct SheetOrPopover: ViewModifier { } } } + +@available(visionOS 1.0, *) +fileprivate struct AttachmentButtonLabelStyle: LabelStyle { + func makeBody(configuration: Configuration) -> some View { + DefaultLabelStyle().makeBody(configuration: configuration) + .foregroundStyle(.white) + } +}