swiftui

swiftui is a skill for Claude Code from moasq/ios-dev-agent. It costs 45 tokens per session (265 once invoked), scanned A, a copy of swiftui, MIT.

A reference library for building SwiftUI views, Apple's framework for creating app interfaces with Swift. It covers layouts, state, forms, lists, scrolling, animations, media, and modern APIs.

In plain words
What is it for?
Use it when writing SwiftUI screens, handling state, building forms or lists, adding animations, displaying media, or improving performance.
Why use it?
It provides task-specific patterns for common SwiftUI interface and state-management problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the ios-dev-agent plugin — 65 skills, 12 agents, 4 hooks, 1 MCP server shipped together

Good fit Use it when writing SwiftUI screens, handling state, building forms or lists, adding animations, displaying media, or improving performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/moasq/ios-dev-agent/swiftui
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add moasq/ios-dev-agent --skill swiftui
Clone the repo
git clone --depth 1 https://github.com/moasq/ios-dev-agent

Made for: Claude Code.

Or install ios-dev-agent, the plugin that ships this one along with the rest of its 65 skills, 12 agents, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swiftui

README.md
[![agentmods](https://agentmods.dev/badge/skills/moasq/ios-dev-agent/swiftui/github.svg)](https://agentmods.dev/skills/moasq/ios-dev-agent/swiftui)
Your own site
<a href="https://agentmods.dev/skills/moasq/ios-dev-agent/swiftui"><img src="https://agentmods.dev/badge/skills/moasq/ios-dev-agent/swiftui/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swiftui

Your own site · 80×15
<a href="https://agentmods.dev/skills/moasq/ios-dev-agent/swiftui"><img src="https://agentmods.dev/badge/skills/moasq/ios-dev-agent/swiftui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00265
Opus 5.5 $0.00018 $0.00106
Sonnet 5.5 $0.00009 $0.00053
Haiku 4.5 $0.00005 $0.00026

Measured 1mo ago against content hash c22ef8c8af2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swiftui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to swiftui — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/swiftui/SKILL.md · 19 lines

What it actually says

SwiftUI Patterns

Read the relevant guide for your current task:

  • animations.md — timing, transitions, keyframes
  • forms.md — form layout, validation, input controls
  • lists.md — list patterns, ForEach, swipe actions
  • scroll.md — ScrollView, paging, parallax
  • state.md — @State, @Observable, property wrappers
  • performance.md — optimization, lazy loading, debug
  • text.md — number/date/currency formatting
  • media.md — image containment/clipping, video thumbnails, photos, maps, camera
  • modern-apis.md — latest SwiftUI API preferences
  • liquid-glass.md — glass effects, morphing, tinting
Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 19 lines · 45 tokens per session scan A c22ef8c8af2e

Subscribe to this mod's changes

swiftui is a skill published in the GitHub repository moasq/ios-dev-agent (6 stars, last pushed 4mo ago), licensed MIT. It adds 45 tokens to every session and 265 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to swiftui, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

kotlin-specialist

Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose.…

Jeffallan/claude-skills · 86 tokens

wear-compose-m3

Guidance for Wear OS Compose Material3 (Wear Compose Material 3 / Wear Compose Material3) watch and wearable apps. Covers creating, updating, and migrating projects (Material 2.5 and Horologist migration) using androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3…

android/skills · 91 tokens

build-android-binary

Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…

microsoft/power-platform-skills · 150 tokens

swiftui-dev

Use this skill for SwiftUI development, architecture, structure, performance, and Apple native app profiling. It combines.

Orkas-AI/Orkas · 3 tokens

android-navigation-3

Install and migrate to Jetpack Navigation 3. Use when implementing Navigation 3 patterns including NavDisplay, NavKey routes, deep links, multiple backstacks, scenes (dialogs, bottom sheets), or migrating from Navigation 2.

HoangNguyen0403/agent-skills-standard · 52 tokens

ios-slim-bindings

Create iOS slim bindings for MAUI. USE FOR: slim iOS binding, Native Library Interop, Swift/Objective-C wrappers, XcodeGen project.yml, Podfile, CocoaPods static linking, BUILDLIBRARYFORDISTRIBUTION, XcodeProject MSBuild, @objc/[Export] selector crashes, async completion handlers. DO NOT USE FOR: Android bindings…

dotnet/maui-labs · 97 tokens