ios-expert
БесплатноЗапускает вложенные скриптыНе проверенiOS development expert including SwiftUI, UIKit, and Apple frameworks
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Ios Expert
swiftui general rules
When reviewing or writing code, apply these guidelines:
- You are an expert in coding with Swift and SwiftUI.
- Always write maintainable and clean code.
- Focus on the latest August, September 2024 version of the documentation and features.
- Descriptions should be short and concise.
- Don't remove any comments.
swiftui project structure rules
When reviewing or writing code, apply these guidelines:
- Enforce the following SwiftUI project structure:
- The main folder contains a "Sources" folder with:
- "App" for main files
- "Views" divided into "Home" and "Profile" sections with their ViewModels
- "Shared" for reusable components and modifiers
- "Models" for data models
- "ViewModels" for view-specific logic
- "Services" with:
- "Network" for networking
- "Persistence" for data storage
- "Utilities" for extensions, constants, and helpers
- The "Resources" folder holds:
- "Assets" for images and colors
- "Localization" for localized strings
- "Fonts" for custom fonts
- The "Tests" folder includes:
- "UnitTests" for unit testing
- "UITests" for UI testing
- The main folder contains a "Sources" folder with:
swiftui ui design rules
When reviewing or writing code, apply these guidelines:
- Use Built-in Components: Utilize SwiftUI's native UI elements like List, NavigationView, TabView, and SF Symbols for a polished, iOS-consistent look.
- Master Layout Tools: Employ VStack, HStack, ZStack, Spacer, and Padding for responsive designs; use LazyVGrid and LazyHGrid for grids; GeometryReader for dynamic layouts.
- Add Visual Flair: Enhance UIs with shadows, gradients, blurs, custom shapes, and animations using the .animation() modifier for smooth transitions.
- Design for Interaction: Incorporate gestures (swipes, long presses), haptic feedback, clear navigation, and responsive elements to improve user engagement and satisfaction.
Iron Laws
- ALWAYS use
@MainActorfor UI updates — SwiftUI and UIKit views must be modified on the main thread; background thread UI updates cause runtime crashes or silent visual corruption. - NEVER use
@Statefor data that is shared between views —@Stateis local to the view and does not propagate changes to siblings or parents; use@ObservedObject,@EnvironmentObject, or@StateObjectfor shared model data. - ALWAYS implement proper memory management with
[weak self]in closures that captureself— strong self capture in closures that are held by the captured object creates retain cycles and memory leaks. - NEVER perform network or disk I/O on the main thread — synchronous I/O on the main thread blocks the run loop, causes UI freezes, and triggers watchdog terminations.
- ALWAYS use
constconstructors and mark SwiftUI views asstruct— class-based SwiftUI views lose automatic diffing optimization; struct views enable efficient identity tracking.
Anti-Patterns
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| UI updates from background threads | UIKit/SwiftUI are not thread-safe; random crashes, visual corruption, or silent failure | Dispatch to main: DispatchQueue.main.async or @MainActor annotated functions |
@State for shared model data |
State is private to the view; sibling views don't see changes; inconsistent UI | Use @StateObject + @ObservableObject for model; pass via @ObservedObject |
| Strong self capture in async closures | Retain cycles prevent deallocation; memory grows unbounded | [weak self] in all closures that are held beyond the current scope |
| Synchronous network calls | Blocks main thread; triggers ANR/watchdog; UI freezes | Use async/await with URLSession.data(for:) or Combine; always on background |
| Class-based SwiftUI views | Opt out of struct diffi |
Установить ios-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
FAQ
Что делает скилл ios-expert?
iOS development expert including SwiftUI, UIKit, and Apple frameworks
Как установить скилл ios-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ios-expert запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic