Back to Marketplace

Run this helper free

Answer 3 questions. Get a result in 2 minutes. Preview free.

Start free →
FREE
Scanned
Grow Business

Swift UIKit Skill

Programmatic UIKit done right, fast, maintainable

Developers struggle to build scalable, maintainable UIKit apps without clear patterns for layout, data management, and architecture.

You get production-ready UIKit code following proven patterns for Auto Layout, networking, Core Data, and complex UI components.

  • Auto Layout constraints and stack view patterns
  • Table and collection view architecture best practices
  • Navigation and animation implementation guidance
  • Core Data integration and networking patterns
  • Custom control and UIView subclass design

👁 2 views · 📦 0 installs

Install in one line

mfkvault install nizhan80-art-swift-uikit-skill

Requires the MFKVault CLI. Prefer MCP?

No reviews yet
🤖 Claude Code Cursor💻 Codex🦞 OpenClaw
FREE

Free to install — no account needed

Copy the command below and paste into your agent.

Instant access • No coding needed • No account needed

What you get in 5 minutes

  • Full skill code ready to install
  • Works with 4 AI agents
  • Lifetime updates included
SecureBe the first
Ready to run

Run this helper

Answer a few questions and let this helper do the work.

Advanced: use with your AI agent

Description

--- name: swift-uikit-skill description: "Build, review, and improve programmatic UIKit applications following proven patterns for Auto Layout, table views, collection views, navigation, animation, Core Data, networking, and architecture. Use when writing new UIKit features, refactoring existing view controllers, reviewing UIKit code quality, building custom controls, or implementing common iOS design patterns like load-and-retry, onboarding, or collapsible headers." license: MIT metadata: author: Lakr233 version: "1.0.0" source: swift-arcade --- # Swift UIKit Skill ## Operating Rules - All UI is built **programmatically** (no Storyboards). Always set `translatesAutoresizingMaskIntoConstraints = false`. - Prefer `NSLayoutConstraint.activate([...])` for batch constraint activation. - Organize view controller code with extensions: separate `style()`, `layout()`, and protocol conformances. - Use factory functions for repetitive UI element creation. - Use `weak` references for delegates and `[weak self]` in closures to prevent retain cycles. - Prefer `Result<Success, Error>` for async completion handlers. - Always dispatch UI updates to the main thread from async callbacks. - Extract custom views flush to their container; parent manages spacing. - Use child view controllers for complex, self-contained screen sections. - Consult relevant reference files before implementing any topic. ## Task Workflow ### Review existing UIKit code - Read the code under review and identify which topics apply - Run the Topic Router below for each relevant topic - Check for retain cycles (missing `weak` delegates, missing `[weak self]`) - Verify Auto Layout completeness (unambiguous constraints, no warnings) - Flag deprecated patterns (e.g., manual `beginUpdates`/`endUpdates` when Diffable is available) ### Improve existing UIKit code - Audit current implementation against the Topic Router topics - Extract large view controllers into child VCs and custom views - Replace inline UI creation with factory functions - Migrate legacy table/collection view data sources to Diffable where appropriate - Add proper error handling with `Result` types ### Implement new UIKit feature - Design data flow first: identify service, view model, view controller, and view layers - Structure views for composition (extracted views + child view controllers) - Apply correct animation patterns (constraint-based, Core Animation, or UIView) - Use protocol-delegate for sustained relationships; closures for one-shot callbacks - Add proper loading/error states ## Topic Router Consult the reference file for each topic relevant to the current task: | Topic | Reference | | ---------------------- | -------------------------------------- | | UITableView | `references/uitableview.md` | | UICollectionView | `references/uicollectionview.md` | | UINavigationController | `references/uinavigationcontroller.md` | | UIScrollView | `references/uiscrollview.md` | | Core Animation | `references/core-animation.md` | | Core Graphics | `references/core-graphics.md` | | Auto Layout animation | `references/auto-layout-animation.md` | | Communication patterns | `references/communication-patterns.md` | | Architecture patterns | `references/architecture-patterns.md` | | View extraction | `references/view-extraction.md` | | Navigation patterns | `references/navigation-patterns.md` | | Design patterns (UI) | `references/design-patterns.md` | | Networking | `references/networking.md` | | Factory functions | `references/factory-patterns.md` | | Nib / XIB patterns | `references/nib-patterns.md` | | NSAttributedString | `references/nsattributedstring.md` | | Gesture recognizers | `references/gesture-recognizers.md` | | Custom controls | `references/custom-controls.md` | | Currency formatting | `references/currency-formatting.md` | | Deep linking | `references/deep-linking.md` | ## Correctness Checklist These are hard rules -- violations are always bugs: - [ ] Every programmatic view sets `translatesAutoresizingMaskIntoConstraints = false` - [ ] Delegates are declared `weak var delegate: SomeDelegate?` - [ ] Async closures capture `[weak self]` when referencing the owning object - [ ] UI updates from async callbacks are dispatched to `DispatchQueue.main` - [ ] `beginUpdates()` / `endUpdates()` bracket all batch table view mutations - [ ] Diffable data source items conform to `Hashable` with stable identifiers - [ ] Child view controllers follow the 3-step lifecycle: `addChild()`, `addSubview()`, `didMove(toParent:)` - [ ] Custom views define `intrinsicContentSize` when they have a natural size - [ ] `NSFetchedResultsController` delegate implements all three callbacks (`willChange`, `didChange`, `didChangeContent`) - [ ] Core Animation model layer is updated after animation to persist final state - [ ] `NSLayoutConstraint.activate()` is used instead of `isActive = true` one-by-one - [ ] Factory functions return views with `translatesAutoresizingMaskIntoConstraints` already set to `false` ## Quick Diagnostics | Symptom | Likely cause | Reference | | ------------------------------ | ----------------------------------------------------------- | -------------------------------------- | | View doesn't appear | Missing `translatesAutoresizingMaskIntoConstraints = false` | `references/view-extraction.md` | | Table view crashes on insert | Data source count mismatch with `beginUpdates` | `references/uitableview.md` | | Animation snaps to final state | Model layer not updated after CA animation | `references/core-animation.md` | | Retain cycle / memory leak | Missing `weak` on delegate or `[weak self]` | `references/communication-patterns.md` | | Scroll view doesn't scroll | Missing content size or broken constraint chain | `references/uiscrollview.md` | | Shadow clipped by view | `masksToBounds = true` on layer | `references/core-animation.md` | | Gradient/shadow wrong size | Set bounds-dependent layers in `viewDidAppear` | `references/core-animation.md` | | Collection view empty | Forgot to register cell or data source nil | `references/uicollectionview.md` | | Core Data threading crash | Accessing managed object on wrong queue | `references/networking.md` | | Navigation bar title missing | Not setting `title` or `navigationItem.title` | `references/uinavigationcontroller.md` |

Preview in:

Security Status

Scanned

Passed automated security checks

Time saved
How much time did this skill save you?

Related AI Tools

More Grow Business tools you might like

codex-collab

Free

Use when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value — second opinions on code, plans, architecture, or design decisions.

Rails Upgrade Analyzer

Free

Analyze Rails application upgrade path. Checks current version, finds latest release, fetches upgrade notes and diffs, then performs selective upgrade preserving local customizations.

Asta MCP — Academic Paper Search

Free

Domain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic paper search, citation traversal, and author discovery.

Hand Drawn Diagrams

Free

Create hand-drawn Excalidraw diagrams, flows, explainers, wireframes, and page mockups. Default to monochrome sketch output; allow restrained color only for page mockups when the user explicitly wants webpage-like fidelity.

Move Code Quality Checker

Free

Analyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working

Claude Memory Kit

Free

"Persistent memory system for Claude Code. Your agent remembers everything across sessions and projects. Two-layer architecture: hot cache (MEMORY.md) + knowledge wiki. Safety hooks prevent context loss. /close-day captures your day in one command. Z