woocommerce-ios
woocommerce-ios copied to clipboard
[Woo POS] Extract cart logic to `CartViewModel`
Part of https://github.com/woocommerce/woocommerce-ios/issues/12998 ⚠️ Based on https://github.com/woocommerce/woocommerce-ios/pull/13205 to test with the order sync fix
Description
This is the continuation of https://github.com/woocommerce/woocommerce-ios/issues/12998 , here we'll move Cart-related actions and handling to a separate CartViewModel
Its design follows the same pattern as with the product list, we'll observe changes in the model from the dashboard and use these to coordinate and communicate between different subviews.