From 4da11c9dfb9cf79f3133cbff8e58008c41b29c9c Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Mon, 31 Oct 2022 13:15:29 -0400 Subject: [PATCH] Mark the spoiler overlay view as a button --- .../Sources/MastodonUI/View/Control/SpoilerOverlayView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MastodonSDK/Sources/MastodonUI/View/Control/SpoilerOverlayView.swift b/MastodonSDK/Sources/MastodonUI/View/Control/SpoilerOverlayView.swift index 17360d545..98139b00e 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Control/SpoilerOverlayView.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Control/SpoilerOverlayView.swift @@ -72,6 +72,7 @@ extension SpoilerOverlayView { spoilerMetaLabel.isUserInteractionEnabled = false isAccessibilityElement = true + accessibilityTraits.insert(.button) } public func setComponentHidden(_ isHidden: Bool) {