File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
WooCommerce/Classes/ViewRelated/Orders/Order Creation/ProductsSection Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import SwiftUI
33/// View showing a list of product variations to add to an order.
44///
55struct AddProductVariationToOrder : View {
6+ @Environment ( \. presentationMode) private var presentation
7+
68 /// Defines whether the view is presented.
79 ///
810 @Binding var isPresented : Bool
@@ -43,6 +45,17 @@ struct AddProductVariationToOrder: View {
4345 . ignoresSafeArea ( . container, edges: . horizontal)
4446 . navigationTitle ( viewModel. productName)
4547 . navigationBarTitleDisplayMode ( . inline)
48+ . navigationBarBackButtonHidden ( true )
49+ . toolbar {
50+ // Minimal back button
51+ ToolbarItem ( placement: . navigationBarLeading) {
52+ Button {
53+ presentation. wrappedValue. dismiss ( )
54+ } label: {
55+ Image ( uiImage: . chevronLeftImage. imageFlippedForRightToLeftLayoutDirection ( ) )
56+ }
57+ }
58+ }
4659 . onAppear {
4760 viewModel. syncFirstPage ( )
4861 }
You can’t perform that action at this time.
0 commit comments