Fix SwiftFormat indentation in VideoContextMenuView

Applied SwiftFormat indentation rules to conditional overlay block in iOS-specific code.
This commit is contained in:
Arkadiusz Fal
2025-11-23 17:02:07 +01:00
parent e43eddc8e7
commit 82570b7f34

View File

@@ -34,19 +34,19 @@ struct VideoContextMenuView: View {
var body: some View {
ZStack {
#if os(iOS)
// Conditional overlay to block taps on underlying views
if isOverlayVisible {
Color.clear
.contentShape(Rectangle())
.onTapGesture {
// Dismiss overlay without triggering other interactions
isOverlayVisible = false
}
.ignoresSafeArea() // Ensure overlay covers the entire screen
.accessibilityLabel("Dismiss context menu")
.accessibilityHint("Tap to close the context")
.accessibilityAddTraits(.isButton)
}
// Conditional overlay to block taps on underlying views
if isOverlayVisible {
Color.clear
.contentShape(Rectangle())
.onTapGesture {
// Dismiss overlay without triggering other interactions
isOverlayVisible = false
}
.ignoresSafeArea() // Ensure overlay covers the entire screen
.accessibilityLabel("Dismiss context menu")
.accessibilityHint("Tap to close the context")
.accessibilityAddTraits(.isButton)
}
#endif
if video.videoID != Video.fixtureID {