Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

iOS shell: the focus ring goes off with its panel, not after it in place

Haseenesss47c5a5bef41d
diff --git a/frontend-ios/Sources/ShellUI/ShellFocus.swift b/frontend-ios/Sources/ShellUI/ShellFocus.swift
index 5d92f9b6..715520a2 100644
--- a/frontend-ios/Sources/ShellUI/ShellFocus.swift
+++ b/frontend-ios/Sources/ShellUI/ShellFocus.swift
@@ -52,6 +52,9 @@ struct ShellFocusTarget: ViewModifier {
if focus.visible && focus.id == id {
RoundedRectangle(cornerRadius: radius + 5).strokeBorder(ShellPalette.cream, lineWidth: 3)
.padding(-5).allowsHitTesting(false).accessibilityHidden(true)
+ // On and off at once: a ring fading in or out stays where it was while a panel slides, apart
+ // from its control.
+ .transition(.identity)
}
}
.background {