Files
swiftapp/swift/Sources/Core/Design/Haptics.swift
Jürgen Kunz 2fe6b8a6df WIP: local handoff implementation
Local work on the social.io handoff before merging the claude
worktree branch. Includes the full per-spec Sources/Core/Design
module (8 files), watchOS target under WatchApp/, Live Activity +
widget extension, entitlements, scheme, and asset catalog.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 16:26:38 +02:00

26 lines
481 B
Swift

import SwiftUI
#if os(iOS)
import UIKit
#endif
enum Haptics {
static func selection() {
#if os(iOS)
UISelectionFeedbackGenerator().selectionChanged()
#endif
}
static func success() {
#if os(iOS)
UINotificationFeedbackGenerator().notificationOccurred(.success)
#endif
}
static func warning() {
#if os(iOS)
UINotificationFeedbackGenerator().notificationOccurred(.warning)
#endif
}
}