File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,8 @@ extension PointOfSaleAggregateModel {
206206 productType: . init( cartItem: cartItem)
207207 )
208208 )
209+
210+ cart. accessibilityFocusedItemID = cartItem. id
209211 }
210212 } catch {
211213 DDLogInfo ( " Failed to find item by barcode: \( error) " )
Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ struct CartView: View {
9797 . padding ( . bottom, Constants . cartLastItemBottomPadding)
9898 . onChange ( of: posModel. cart. accessibilityFocusedItemID) { itemID in
9999 if let itemID = itemID {
100- accessibilityFocusedItem = itemID
100+ Task { @MainActor in
101+ accessibilityFocusedItem = itemID
102+ }
101103 }
102104 }
103105 . animation ( Constants . cartAnimation, value: posModel. cart. purchasableItems. map ( \. id) )
You can’t perform that action at this time.
0 commit comments