Skip to content

Commit

Permalink
Marks UIHapticFeedbackPerformer.perform() with @mainactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dm-zharov committed Apr 3, 2024
1 parent dfbc069 commit 0792e68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/HapticFeedback/HapticFeedback.swift
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ private class HapticFeedbackManager {
#if os(iOS) || targetEnvironment(macCatalyst)
private final class _UIHapticFeedbackPerformer: HapticFeedbackPerformer {
private let _cache: [HapticFeedback.FeedbackType: UIFeedbackGenerator] = [:]


@MainActor
func perform(_ feedbackType: HapticFeedback.FeedbackType) {
switch feedbackType {
case .success:
Expand Down

0 comments on commit 0792e68

Please sign in to comment.