Communitygithub.com

dimillian/swiftui-ui-patterns

最佳實踐與範例驅動的 SwiftUI 檢視與元件建置指南,包含導航層級、自訂檢視修飾器,以及使用堆疊和網格的自適應佈局。

swiftui-ui-patterns 是什麼?

此技能提供一套全面的最佳實踐與範例,專為 SwiftUI 檢視與元件的建置及重構而設計。它能協助開發者有效設計 TabView 導航架構、使用 VStack/HStack 組合螢幕,並妥善管理 @State 與 @Binding 狀態。無論是建構宣告式 iOS 介面,還是需要特定元件的設計模式與範例,此技能都能提供具體指引。支援範圍涵蓋導航層級、自訂檢視修飾器,以及使用堆疊與網格的自適應佈局,幫助開發者避免常見陷阱,遵循業界最佳實務。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dimillian/skills/tree/main/skills/swiftui-ui-patterns

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

swiftui-ui-patterns 是做什麼的?

最佳實踐與範例驅動的指南,用於建構 SwiftUI 檢視與元件,包括導航層級、自訂檢視修飾器,以及使用堆疊和網格的自適應佈局。在建立或重構 SwiftUI 使用者介面、設計 TabView 分頁架構、使用 VStack/HStack 組合螢幕、管理 @State 或 @Binding、建構宣告式 iOS 介面,或需要特定元件的模式與範例時使用。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

dimillian/app-store-changelog

Create user-facing App Store release notes by collecting and summarizing all user-impacting changes since the last git tag (or a specified ref). Use when asked to generate a comprehensive release changelog, App Store "What's New" text, or release notes based on git history or tags.

dimillian/ios-debugger-agent

Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an iOS app, interact with the simulator UI, inspect on-screen state, capture logs/console output, or diagnose runtime behavior using XcodeBuildMCP tools.

dimillian/macos-spm-app-packaging

Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode.

dimillian/swift-concurrency-expert

Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file. Concrete actions include adding Sendable conformance, applying @MainActor annotations, resolving actor isolation warnings, fixing data race diagnostics, and migrating completion handlers to async/await.

dimillian/swiftui-liquid-glass

Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.

dimillian/swiftui-performance-audit

Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user-run Instruments profiling when code review alone is insufficient.

dimillian/swiftui-view-refactor

Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage. Use when cleaning up a SwiftUI view, splitting long bodies, removing inline actions or side effects, reducing computed `some View` helpers, or standardizing `@Observable` and view model initialization patterns.

相關技能