Get SwiftUI Guide
get-swiftui-guideLoad SwiftUI implementation guidance with copyable Swift examples for native layout, animation, gestures, and Metal shaders. Search by task when you do not know the topic name.
Instructions
Load implementation guidance for SwiftUI and native Apple platform work.
Use this while planning, building, or debugging a SwiftUI interface. It covers native layout and view composition, animation and gestures, Metal shader effects, and the platform APIs those depend on, with copyable Swift examples.
This complements the design tools: use get-ui-principle for visual decisions, get-ux-principle for product behavior, and get-react-native-guide when the target is React Native or Expo rather than native Swift.
You can either:
Request a known topic: get-swiftui-guide({ topic: "swiftui-ripple-refraction" })
Use an alias: get-swiftui-guide({ topic: "water ripple" })
Search for the current task: get-swiftui-guide({ query: "bend an image where the user touches it" })
Get the full topic index: get-swiftui-guide({})
Prefer query search when you do not know the topic name. Use maxTokens to keep responses focused (recommended: 5000-10000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Natural language description of the SwiftUI task or problem. | |
| topic | No | Specific SwiftUI topic or alias, e.g. swiftui-ripple-refraction. | |
| context | No | Optional. One sentence on WHY you are calling this and what the user asked for (e.g. 'adding nav icons for the fintech dashboard'). Used only for usage analytics; does not change the result. | |
| maxTokens | No | Maximum tokens to return. Truncates content to fit. Recommended: 5000-10000. |