dxe-apple-native-ui
Build or review native Apple interfaces, including platform controls, accessibility, state, navigation, and macOS window behavior.
Install
npx skills add https://github.com/kemiljk/skills --skill dxe-apple-native-ui- license
- MIT
Apple Native UI
Build and review interfaces that feel native because they use the platform's interaction, accessibility, and adaptation contracts—not because they imitate a screenshot.
Start with the target
Identify the platforms, minimum OS versions, SwiftUI versus UIKit/AppKit boundary, supported input (touch, pointer, keyboard, VoiceOver, Digital Crown, remote, eye/hand), and primary form factors. Do not apply an iPhone convention to macOS, iPad multitasking, watchOS, tvOS, or visionOS without evidence that it transfers.
Prefer system controls, semantic colors, text styles, safe-area APIs, navigation containers, and presentation APIs before custom reconstructions. Custom UI must retain the equivalent accessibility, focus, state, and cancellation behaviour.
Fresh platform guidance
Before prescribing or implementing APIs, behaviour, design conventions, or verification that may vary by SDK or OS release, search current primary Apple sources: Apple Developer Documentation, Human Interface Guidelines, and relevant WWDC sessions. Check the project's deployment target before recommending a newer API, and distinguish current Apple guidance from repository-local compatibility constraints. The examples here express durable contracts; they are not a substitute for release-specific documentation.
iOS and iPadOS workflow
When iOS or iPadOS is a target, load the reference that matches the work before planning, building, or reviewing anything non-trivial. Load only what the task touches.
Eight checks catch most iOS defects. Run them on every review, whichever reference is loaded:
- Nothing is gesture-only. Every swipe, drag, pinch, long press, and tap-outside has a visible or assistive equivalent.
- Nobody gets trapped. Every modal, sheet, and overlay has an exit that VoiceOver can reach.
- Text survives its worst case. No fixed font sizes; informative text wraps; the screen scrolls on the smallest device at the largest text size.
- Settings apply live. Text size, appearance, Reduce Motion, Reduce Transparency, and Low Power Mode are observed, not read once.
- Layout follows space, not device. Branch on size class or available width, never on idiom. An iPad window can be phone-width.
- Nothing blocks on unrequested work. No launch into a spinner, no main-thread loading, and content never blinks in unannounced.
- Mistakes are reversible. Editing registers undo; destructive actions confirm; controls are never enabled while doing nothing.
- Entry points handle any state. A notification, link, quick action, widget, or Spotlight result works on cold launch, while signed out, and with missing data.
The references carry opinions as well as contracts, and their release-specific detail dates. The requirement above to check current Apple guidance still applies.
macOS workflow
When macOS is an intended target, read references/macos-native-workflows.md [blocked] before planning, building, porting, or reviewing a non-trivial interface. It adds a Mac-specific workflow for commands, windows and documents, selection and focus, pasteboard and drag/drop, undo, state restoration, configuration, Finder interoperability, and behaviour-led verification.
Treat a Mac version as a distinct workflow even when it shares models or views with iPadOS. A resizable iPad layout is not by itself a complete Mac app.
State and identity
Own state at the narrowest stable boundary. A child that only displays data receives a value; a child that edits parent state receives a binding. Keep side effects out of body and give lists stable identities.
Do not turn an injected value into @State, use positional indices as mutable list identity, or use onTapGesture where Button, NavigationLink, Toggle, or another native control expresses the task.
Platform contracts
- Use
NavigationStack/NavigationSplitView, sheets, alerts, confirmation dialogs, and toolbars according to the target platform. Verify back, dismiss, cancel, and focus-restoration paths. - Use semantic colors and Dynamic Type-aware typography. Test extra-large text before adding truncation, clipping, or fixed frames.
- Treat safe areas, split view, window resizing, rotation, external keyboard, pointer, and layout direction as input to the layout—not exceptional breakpoints.
- Prefer
@Observable,@State,@Binding, and@Bindablewhere deployment targets permit; gate version-specific APIs and provide a real fallback. - Make animations value-driven and task-preserving under Reduce Motion. Wait for the observable end state before testing or reporting it.
Accessibility
Accessibility is expressed through the native accessibility tree, not ARIA. Check VoiceOver labels, values, hints, traits, grouping, reading order, adjustable actions, focus movement, and disabled controls. Hide decorative imagery; label meaningful images and ambiguous icons.
On iOS and iPadOS this is the floor. references/ios-accessibility.md [blocked] covers flattening rows and restoring their actions, Switch Control and Voice Control, Dynamic Type layout, and live preference handling.
Read references/apple-verification.md [blocked] for simulator, device, XCUITest, accessibility, and form-factor evidence, and for iOS probes: launch arguments, simctl entry-point tests, and Instruments templates. Read it before making native verification claims.
Review output
Anchor findings to a source path or an observed target/device. State whether evidence is source-only or rendered. Name the affected platform and input method; an iOS finding is not automatically a macOS finding.