mirror of
https://github.com/yattee/yattee.git
synced 2026-01-15 08:12:34 +00:00
Fix SwiftFormat indentation in VideoContextMenuView
Applied SwiftFormat indentation rules to conditional overlay block in iOS-specific code.
This commit is contained in:
@@ -34,19 +34,19 @@ struct VideoContextMenuView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
// Conditional overlay to block taps on underlying views
|
// Conditional overlay to block taps on underlying views
|
||||||
if isOverlayVisible {
|
if isOverlayVisible {
|
||||||
Color.clear
|
Color.clear
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
// Dismiss overlay without triggering other interactions
|
// Dismiss overlay without triggering other interactions
|
||||||
isOverlayVisible = false
|
isOverlayVisible = false
|
||||||
}
|
}
|
||||||
.ignoresSafeArea() // Ensure overlay covers the entire screen
|
.ignoresSafeArea() // Ensure overlay covers the entire screen
|
||||||
.accessibilityLabel("Dismiss context menu")
|
.accessibilityLabel("Dismiss context menu")
|
||||||
.accessibilityHint("Tap to close the context")
|
.accessibilityHint("Tap to close the context")
|
||||||
.accessibilityAddTraits(.isButton)
|
.accessibilityAddTraits(.isButton)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if video.videoID != Video.fixtureID {
|
if video.videoID != Video.fixtureID {
|
||||||
|
|||||||
Reference in New Issue
Block a user