ios-swiftui

ios-swiftui is a skill for Claude Code, Codex from koshkinvv/ios-agent-skills. It costs 203 tokens per session (2,787 once invoked), scanned A, original, MIT.

A set of development guidelines for building iPhone and iPad apps with SwiftUI, Apple's user-interface framework.

In plain words
What is it for?
Use it while designing SwiftUI views, managing data and navigation, displaying large collections, loading data asynchronously, and splitting large views into smaller ones.
Why use it?
It helps developers choose consistent patterns for layout, app state, navigation, animations, and performance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it while designing SwiftUI views, managing data and navigation, displaying large collections, loading data asynchronously, and splitting large views into smaller ones.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/koshkinvv/ios-agent-skills/ios-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 koshkinvv/ios-agent-skills --skill ios-swiftui
Clone the repo
git clone --depth 1 https://github.com/koshkinvv/ios-agent-skills

Made for: Claude Code, Codex.

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 ios-swiftui

README.md
[![agentmods](https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-swiftui/github.svg)](https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-swiftui)
Your own site
<a href="https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-swiftui"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-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 ios-swiftui

Your own site · 80×15
<a href="https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-swiftui"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-swiftui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 203 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,787 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 original No closer match found 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.00203 $0.02787
Opus 5.5 $0.00081 $0.01115
Sonnet 5.5 $0.00041 $0.00557
Haiku 4.5 $0.00020 $0.00279

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

Security

Grade A, and why

ios-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 3mo 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.

skills/ios-swiftui/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

iOS SwiftUI Expert Skill

Core Rules

  1. Use @Observable (iOS 17+) over ObservableObject — fine-grained property tracking, better performance, simpler syntax.
  2. Use @State to own @Observable instances, NOT @StateObject. @StateObject is the pre-iOS 17 pattern.
  3. Use NavigationStack (not NavigationView) with value-based NavigationLink + .navigationDestination.
  4. Never nest NavigationStack inside NavigationStack — causes double navigation bars and broken behavior.
  5. Use LazyVStack/LazyHStack inside ScrollView for large collections. Use List for very large datasets (cell reuse + prefetching).
  6. Keep body pure — no data processing, network calls, or side effects. Use .task modifier for async work.
  7. Avoid AnyView — it destroys view identity and kills diffing performance. Use @ViewBuilder or Group instead.
  8. Preserve view identity — use ternary operators (condition ? viewA : viewB), not if/else that changes the view type in ways that break animations.
  9. Break large views into small subviews — SwiftUI re-evaluates body often; smaller views = smaller re-evaluation scope.
  10. Use .equatable() on expensive views to skip unnecessary re-renders.

Decision Tables

State Management — What to Use When

Scenario iOS 17+ Pre-iOS 17
Simple value owned by view @State @State
Pass value down for read/write @Binding @Binding
Reference-type model owned by view @State + @Observable @StateObject + ObservableObject
Reference-type model passed in just pass it (auto-tracked) @ObservedObject
Shared model via environment @Environment + custom key @EnvironmentObject
Create binding to @Observable property @Bindable N/A (use @Published + $)
System environment values @Environment(\.colorScheme) same

Key insight: With @Observable, SwiftUI tracks which properties a view actually reads in body. With ObservableObject, ANY @Published change triggers ALL observing views to re-evaluate.

Read the full file on GitHub · 296 lines

Files

What ships with it

5 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. 3mo ago First seen · 296 lines · 203 tokens per session scan A eb8837247b21

Subscribe to this mod's changes

ios-swiftui is a skill published in the GitHub repository koshkinvv/ios-agent-skills (6 stars, last pushed 8mo ago), licensed MIT. It adds 203 tokens to every session and 2,787 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ios-swiftui compared with skills from other repositories

ios-swiftui next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ios-swiftuikoshkinvv/ios-agent-skillsSkill68mo agoMITA203Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill6915d agoMITA80Claude Code, Codex
swift-concurrencyrusel95/ios-agent-skillsSkill141mo agoMITA170Claude Code
tca-swiftuirusel95/ios-agent-skillsSkill141mo agoMITA149Claude Code
uikit-mvvmrusel95/ios-agent-skillsSkill141mo agoMITA125Claude Code
sweetpadsweetpad-dev/sweetpadSkill1.9ktodayMITA90Claude Code, Codex
android-clean-architecturehashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A34Claude Code, Codex