Handles keyboard, directional, and scene-level focus across SwiftUI and UIKit for iOS, macOS, tvOS, and visionOS connected-input scenarios. Covers @FocusState binding patterns, defaultFocus placement, focusedSceneValue propagation for commands and menus, focus sections for tvOS grids, restoration after sheet dismissal, and UIFocusGuide routing in UIKit. The source draws a clean line between focus (keyboard, remote, game controller) and other affordances like visionOS gaze hover or accessibility element ordering, which keeps the guidance sharp. If you're wiring up Full Keyboard Access on macOS, Siri Remote navigation on tvOS, or just trying to keep focus sane after presenting a sheet, this covers the practical patterns without wandering into unrelated input concerns.

skills.sh installs
2.8K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill focus-engine --agent claude-code

Installs into .claude/skills of the current project.

Files

Focus Engine

Focus behavior for SwiftUI and UIKit apps targeting iOS 26+, iPadOS, macOS, tvOS, and visionOS connected-input paths. Covers keyboard focus, directional focus, scene-focused values, focus restoration, and UIKit focus guides. focusSection() guidance in this skill applies to macOS and tvOS. visionOS gaze-driven hover is an input affordance, not focus. Accessibility-specific focus for VoiceOver and Switch Control lives in the ios-accessibility skill.

When a request mixes focus with accessibility or spatial input, keep the boundary explicit:

  • Use this skill for keyboard, remote, game-controller, and scene focus behavior.
  • For visionOS, describe gaze, direct touch, and pointer targeting as hover/input affordances, not focus.
  • For VoiceOver, Switch Control, Voice Control, or accessibility element ordering, give only a brief handoff to ios-accessibility.

Contents

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Debugging, Mobile Development, Office & Documents
First seen
Jun 3, 2026

More from dpearson2699/swift-ios-skills

All 98

Recommended

More Debugging
1mantinedev avatarmantine-formmantinedev/skillsBuild forms using @mantine/form in the mantine-9 repository. Use this skill when: (1) setting up a form with useForm, (2) adding validation rules or async valid2.8Kskills.sh installs
2agricidaniel avatarblog-seo-checkagricidaniel/claude-blogPost-writing SEO validation with pass/fail checklist covering title tag length and keyword placement, meta description quality, heading hierarchy and keyword de2.8Kskills.sh installs
3minimax-ai avatarandroid-native-devminimax-ai/skillsAndroid native application development and UI design guide. Covers Material Design 3, Kotlin/Compose development, project configuration, accessibility, and buil2.7Kskills.sh installs
4getsentry avatarsentry-cloudflare-sdkgetsentry/sentry-for-aiFull Sentry SDK setup for Cloudflare Workers and Pages. Use when asked to "add Sentry to Cloudflare Workers", "install @sentry/cloudflare", or configure error m2.7Kskills.sh installs
5daymade avatari18n-expertdaymade/claude-code-skillsThis skill should be used when setting up, auditing, or enforcing internationalization/localization in UI codebases (React/TS, i18next or similar, JSON locales)2.7Kskills.sh installs
6google avataradk-dev-guidegoogle/adk-docsALWAYS ACTIVE — read at the start of any ADK agent development session. ADK development lifecycle and mandatory coding guidelines — spec-driven workflow, code p2.7Kskills.sh installs