Communitygithub.com

dylantarre/mobile-touch

設計 iOS/Android 手勢、觸覺回饋、觸控互動或原生物動畫時使用。

mobile-touch 是什麼?

此技能專為開發者設計,用於設計和實現 iOS 與 Android 平台上的觸控互動功能,涵蓋手勢辨識、觸覺回饋及原生物動畫。它提供了一份詳細指南,說明如何利用 Core Haptics、UIImpactFeedbackGenerator 等原生 API 來建立豐富的使用者體驗。透過遵循此技能的建議,開發者能確保觸控互動符合平台慣例,提升應用程式的直觀性與回饋感。此技能支援 Swift 與 Kotlin 等語言,並提供具體的程式碼範例與最佳實踐,適用於 Xcode 與 Android Studio 等開發環境。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dylantarre/animation-principles/tree/main/skills/mobile-touch

在你喜歡的 AI 中提問

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

說明文件

mobile-touch 是做什麼的?

設計 iOS/Android 手勢、觸覺回饋、觸控互動或原生物動畫時使用。

此技能提供關於如何在 iOS 與 Android 平台上實現自然且回應迅速的觸控介面的指引。它涵蓋了標準手勢(如點擊、滑動、捏合、旋轉)的實作、觸覺回饋的整合(使用如 Core Haptics 或 UIImpactFeedbackGenerator 等框架),以及流暢的原生物動畫(運用 UIView.animate 或 ObjectAnimator)。技能內容包含程式碼片段、設計模式,以及確保觸控互動符合使用者期望的平台特定最佳實踐。

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相關技能