@@ -11,6 +11,10 @@ struct AddProductToOrder: View {
1111 ///
1212 @ObservedObject var viewModel : AddProductToOrderViewModel
1313
14+ /// Keeps track of the current screen scale
15+ ///
16+ @ScaledMetric private var scale = 1
17+
1418 var body : some View {
1519 NavigationView {
1620 VStack {
@@ -65,7 +69,17 @@ struct AddProductToOrder: View {
6569 if rowViewModel. numberOfVariations > 0 ,
6670 let addVariationToOrderVM = viewModel. getVariationsViewModel ( for: rowViewModel. productOrVariationID) {
6771 LazyNavigationLink ( destination: AddProductVariationToOrder ( isPresented: $isPresented, viewModel: addVariationToOrderVM) ) {
68- ProductRow ( viewModel: rowViewModel)
72+ HStack {
73+ ProductRow ( viewModel: rowViewModel)
74+ . frame ( maxWidth: . infinity, alignment: . leading)
75+
76+ Image ( uiImage: . chevronImage)
77+ . resizable ( )
78+ . flipsForRightToLeftLayoutDirection ( true )
79+ . frame ( width: Constants . chevronSize ( scale: scale) , height: Constants . chevronSize ( scale: scale) )
80+ . foregroundColor ( Color ( . systemGray) )
81+ . accessibility ( hidden: true )
82+ }
6983 }
7084 } else {
7185 ProductRow ( viewModel: rowViewModel)
@@ -81,6 +95,9 @@ private extension AddProductToOrder {
8195 enum Constants {
8296 static let dividerHeight : CGFloat = 1
8397 static let defaultPadding : CGFloat = 16
98+ static func chevronSize( scale: CGFloat ) -> CGFloat {
99+ 22 * scale
100+ }
84101 }
85102
86103 enum Localization {
0 commit comments