teqo-backup/.agents/skills/ios-hig-design/references/gestures.md
Francisco Ignácio Fontoura Solla b75daab498 Refactor campaign dashboard UX and add product discovery artifacts.
Extract dashboard cards into focused components (queues, upcoming plans, leadership status, recently visited, choropleth legend), compile the roadmap for outcome-oriented tracking, document the customer job and improve-app journey, and tighten roadmap skills with decision-quality gates.
2026-07-19 21:56:01 -03:00

1.2 KiB

iOS Gestures & Interactions

Standard Gestures (Never Override)

Gesture Standard Action
Swipe right from left edge Navigate back
Swipe down on modal Dismiss modal
Pull down on list Refresh content
Swipe left on row Reveal actions (delete, etc.)
Pinch Zoom in/out
Long press Context menu

Haptic Feedback

Provide tactile feedback for meaningful interactions:

// Impact feedback (physical actions)
let impact = UIImpactFeedbackGenerator(style: .medium)
impact.impactOccurred()

// Notification feedback (outcomes)
let notification = UINotificationFeedbackGenerator()
notification.notificationOccurred(.success)  // or .warning, .error

// Selection feedback (UI changes)
let selection = UISelectionFeedbackGenerator()
selection.selectionChanged()

Animation Guidelines

  • Use spring animations for natural, bouncy feel
  • Respect reduceMotion accessibility setting
  • Keep animations brief and purposeful
@Environment(\.accessibilityReduceMotion) var reduceMotion

var animation: Animation {
    reduceMotion ? .none : .spring()
}

withAnimation(animation) {
    // Animate property changes
}