Logo: Swift Uikit Skill

Swift Uikit Skill

Communautéit
Lakr233
swift-uikit-skill

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.

Iwwersiicht

EditeurLakr233
RepositorySwift-UIKit-Skill
Skill-Nummswift-uikit-skill
Stären
49
Forks
4
Matgeliwwert Dateien
20
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 20 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Lakr233 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Swift Uikit Skill an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Lakr233/Swift-UIKit-Skill/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lakr233/Swift-UIKit-Skill.git \
  .claude/skills/swift-uikit-skill
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Swift Uikit Skill an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Swift Uikit Skill automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Swift Uikit Skill net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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:

TopicReference
UITableViewreferences/uitableview.md
UICollectionViewreferences/uicollectionview.md
UINavigationControllerreferences/uinavigationcontroller.md
UIScrollViewreferences/uiscrollview.md
Core Animationreferences/core-animation.md
Core Graphicsreferences/core-graphics.md
Auto Layout animationreferences/auto-layout-animation.md
Communication patternsreferences/communication-patterns.md
Architecture patternsreferences/architecture-patterns.md
View extractionreferences/view-extraction.md
Navigation patternsreferences/navigation-patterns.md
Design patterns (UI)references/design-patterns.md
Networkingreferences/networking.md
Factory functionsreferences/factory-patterns.md
Nib / XIB patternsreferences/nib-patterns.md
NSAttributedStringreferences/nsattributedstring.md
Gesture recognizersreferences/gesture-recognizers.md
Custom controlsreferences/custom-controls.md
Currency formattingreferences/currency-formatting.md
Deep linkingreferences/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

SymptomLikely causeReference
View doesn't appearMissing translatesAutoresizingMaskIntoConstraints = falsereferences/view-extraction.md
Table view crashes on insertData source count mismatch with beginUpdatesreferences/uitableview.md
Animation snaps to final stateModel layer not updated after CA animationreferences/core-animation.md
Retain cycle / memory leakMissing weak on delegate or [weak self]references/communication-patterns.md
Scroll view doesn't scrollMissing content size or broken constraint chainreferences/uiscrollview.md
Shadow clipped by viewmasksToBounds = true on layerreferences/core-animation.md
Gradient/shadow wrong sizeSet bounds-dependent layers in viewDidAppearreferences/core-animation.md
Collection view emptyForgot to register cell or data source nilreferences/uicollectionview.md
Core Data threading crashAccessing managed object on wrong queuereferences/networking.md
Navigation bar title missingNot setting title or navigationItem.titlereferences/uinavigationcontroller.md

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Swift Uikit Skill?

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.

Firwat Swift Uikit Skill op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Swift Uikit Skill besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Swift Uikit Skill an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Lakr233/Swift-UIKit-Skill/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Swift Uikit Skill benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Swift Uikit Skill benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Swift Uikit Skill domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Swift Uikit Skill gratis?

Jo. Lakr233 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇