ios-ui-development-focus

ios-ui-development-focus is a cursor rule for Cursor from beettlle/pi-spine. It costs 0 tokens per session (2,037 once invoked), scanned A, original, MIT.

Rules for building iPhone and iPad interfaces with SwiftUI while following Apple's Human Interface Guidelines, its interface design guidance.

In plain words
What is it for?
Choosing SwiftUI presentation APIs, building layouts, styling text on translucent materials, and handling asynchronous data or player readiness.
Why use it?
They prevent common accessibility, keyboard-handling, layout, and presentation mistakes in app interfaces.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/beettlle/pi-spine/ios-ui-development-focus
Clone the repo
git clone --depth 1 https://github.com/beettlle/pi-spine

Made for: Cursor.

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-ui-development-focus

README.md
[![agentmods](https://agentmods.dev/badge/rules/beettlle/pi-spine/ios-ui-development-focus.svg)](https://agentmods.dev/rules/beettlle/pi-spine/ios-ui-development-focus)
Your own site
<a href="https://agentmods.dev/rules/beettlle/pi-spine/ios-ui-development-focus"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/ios-ui-development-focus.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.02037
Opus 5 $0.00000 $0.01019
Sonnet 5 $0.00000 $0.00407
Haiku 4.5 $0.00000 $0.00204

Measured 5d ago against content hash b571fe7da547, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ios-ui-development-focus 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 5d 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.

.cursor/rules/ios-ui-development-focus.mdc · 187 lines

How it starts

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

UI Development Standards

CRITICAL: All UI and UX development must follow these standards

🛑 ZERO TOLERANCE: UI Anti-Patterns

  1. Custom Sheets/Overlays:

    • ❌ NEVER build custom ZStack overlays for modals.
    • ✅ ALWAYS use .sheet(item:) with .presentationDetents().
    • Reason: Custom overlays break keyboard handling and accessibility.
  2. "Sleep" Logic:

    • ❌ NEVER use Task.sleep to wait for data/player readiness.
    • ✅ ALWAYS use await, AsyncStream, or Combine publishers.
  3. Text Blend Modes on Materials:

    • ❌ NEVER use .blendMode(.overlay) or other blend modes for text on translucent materials
    • ✅ ALWAYS use semantic foreground styles: .foregroundStyle(.primary) or .foregroundStyle(.secondary)
    • ✅ ALWAYS use .liquidText() modifier which implements semantic vibrancy correctly
    • Reason: HIG requires semantic vibrancy for text on materials. Blend modes create unpredictable contrast and violate WCAG accessibility standards.

UI Development Guidelines

CRITICAL: All UI and UX features MUST follow Apple's Human Interface Guidelines (HIG) and Liquid Glass design system

  • Always consult Apple HIG documentation (locally indexed) for component usage, design patterns, and accessibility requirements
  • Integrate current Apple design materials (e.g. Liquid Glass per HIG) for new components when available on the project's deployment target; verify API names and availability in Apple docs for the SDK in use

Liquid Glass Design System (project + SDK)

CRITICAL: New UI must follow Apple's Human Interface Guidelines and current materials documentation (e.g. Liquid Glass where applicable).

Implementation Requirements

  • Mandatory Usage (when supported): Use Liquid Glass (or successor) materials for new components when the project's minimum deployment target and SDK support them—use #available / project design-system wrappers when supporting multiple OS versions.
  • Materials: Use Apple's documented APIs for the active SDK; leverage customization options (clear, tinted, dark appearances) as documented.
  • Accessibility: Test for readability, verify VoiceOver/Dynamic Type support, ensure WCAG contrast ratios
  • Reference: Always consult https://developer.apple.com/documentation/technologyoverviews/liquid-glass and HIG for the SDK you build with.

Read the full file on GitHub · 187 lines

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. 5d ago First seen · 187 lines · 0 tokens per session scan A b571fe7da547

Subscribe to this mod's changes

ios-ui-development-focus is a cursor rule published in the GitHub repository beettlle/pi-spine (3 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,037 tokens. 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.