Skip to content

Commit

Permalink
Component iOS: Fix accessibility custom actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hugolefrancois committed Apr 15, 2024
1 parent 0a9001c commit 2ee6eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ios/base/PilotAccessibility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ extension View {

func addNamedActions(_ actions: [PilotAccessibilityAction]) -> some View {
actions.reduce(into: AnyView(self)) { partialResult, action in
AnyView(partialResult.accessibilityAction(named: action.label) { action.action() })
partialResult = AnyView(partialResult.accessibilityAction(named: action.label) { action.action() })
}
}
}

0 comments on commit 2ee6eab

Please sign in to comment.