diff --git a/Modules/Sources/NetworkingCore/Remote/Remote.swift b/Modules/Sources/NetworkingCore/Remote/Remote.swift index ecbd6dbf8e0..98d0fcf8cad 100644 --- a/Modules/Sources/NetworkingCore/Remote/Remote.swift +++ b/Modules/Sources/NetworkingCore/Remote/Remote.swift @@ -370,7 +370,7 @@ public extension Remote { public static let firstPageNumber: Int = 1 } - public enum PaginationHeaderKey { + enum PaginationHeaderKey { public static let totalPagesCount = "x-wp-totalpages" public static let totalCount = "x-wp-total" } diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentBluetoothRequiredAlertView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentBluetoothRequiredAlertView.swift index 6a1aefec953..4bb153ba73a 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentBluetoothRequiredAlertView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentBluetoothRequiredAlertView.swift @@ -43,8 +43,9 @@ struct PointOfSaleCardPresentPaymentBluetoothRequiredAlertView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentBluetoothRequiredAlertView( viewModel: .init(error: NSError(domain: "", code: 1), endSearch: {}), diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedChargeReaderView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedChargeReaderView.swift index adcaf20832e..1bc7f2bd90b 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedChargeReaderView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedChargeReaderView.swift @@ -38,8 +38,9 @@ struct PointOfSaleCardPresentPaymentConnectingFailedChargeReaderView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentConnectingFailedChargeReaderView( viewModel: PointOfSaleCardPresentPaymentConnectingFailedChargeReaderAlertViewModel( retryButtonAction: {}, diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedLocationRequiredAlertView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedLocationRequiredAlertView.swift index 34bff1b2784..ba53869f8d3 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedLocationRequiredAlertView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedLocationRequiredAlertView.swift @@ -38,8 +38,9 @@ struct PointOfSaleCardPresentPaymentConnectingFailedLocationRequiredAlertView: V } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace PointOfSaleCardPresentPaymentConnectingFailedLocationRequiredAlertView( viewModel: PointOfSaleCardPresentPaymentConnectingFailedLocationRequiredAlertViewModel(cancelSearchAction: {}), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedNonRetryableView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedNonRetryableView.swift index 34ee19925b6..18b0b337ed2 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedNonRetryableView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedNonRetryableView.swift @@ -29,8 +29,9 @@ struct PointOfSaleCardPresentPaymentConnectingFailedNonRetryableView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentConnectingFailedNonRetryableView( viewModel: PointOfSaleCardPresentPaymentConnectingFailedNonRetryableAlertViewModel( error: NSError(domain: "payments error", code: 1), diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdateAddressView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdateAddressView.swift index f599a51ccfd..75a3cde812c 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdateAddressView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdateAddressView.swift @@ -35,8 +35,9 @@ struct PointOfSaleCardPresentPaymentConnectingFailedUpdateAddressView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentConnectingFailedUpdateAddressView( viewModel: PointOfSaleCardPresentPaymentConnectingFailedUpdateAddressAlertViewModel( settingsAdminUrl: URL(string: "http://example.com")!, diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdatePostalCodeView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdatePostalCodeView.swift index b7e1677e94c..d88be98d574 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdatePostalCodeView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedUpdatePostalCodeView.swift @@ -38,8 +38,9 @@ struct PointOfSaleCardPresentPaymentConnectingFailedUpdatePostalCodeView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentConnectingFailedUpdatePostalCodeView( viewModel: PointOfSaleCardPresentPaymentConnectingFailedUpdatePostalCodeAlertViewModel( retryButtonAction: { }, diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedView.swift index d773f673d8c..7d722524a3c 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingFailedView.swift @@ -45,8 +45,9 @@ struct PointOfSaleCardPresentPaymentConnectingFailedView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentConnectingFailedView( viewModel: PointOfSaleCardPresentPaymentConnectingFailedAlertViewModel( error: NSError(domain: "preview.error", code: 1), diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingLocationPreAlertView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingLocationPreAlertView.swift index 85c00d5ebe2..c069f697c22 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingLocationPreAlertView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingLocationPreAlertView.swift @@ -42,8 +42,9 @@ struct PointOfSaleCardPresentPaymentConnectingLocationPreAlertView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace PointOfSaleCardPresentPaymentConnectingLocationPreAlertView( viewModel: PointOfSaleCardPresentPaymentConnectingLocationPreAlertViewModel(requestPermissionAction: {}), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingToReaderView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingToReaderView.swift index 7c84f139556..1123cff8574 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingToReaderView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectingToReaderView.swift @@ -33,8 +33,9 @@ struct PointOfSaleCardPresentPaymentConnectingToReaderView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentConnectingToReaderView( viewModel: PointOfSaleCardPresentPaymentConnectingToReaderAlertViewModel(), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectionSuccessAlertView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectionSuccessAlertView.swift index 59c87895c23..ab05a4bbd28 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectionSuccessAlertView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentConnectionSuccessAlertView.swift @@ -27,8 +27,9 @@ struct PointOfSaleCardPresentPaymentConnectionSuccessAlertView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentConnectionSuccessAlertView( viewModel: PointOfSaleCardPresentPaymentConnectionSuccessAlertViewModel(doneAction: {}), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentFoundReaderView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentFoundReaderView.swift index ca9ed2cce4c..4b7d3c83d78 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentFoundReaderView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentFoundReaderView.swift @@ -44,8 +44,9 @@ struct PointOfSaleCardPresentPaymentFoundReaderView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentFoundReaderView( viewModel: PointOfSaleCardPresentPaymentFoundReaderAlertViewModel( readerName: "READER NAME", diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedLowBatteryView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedLowBatteryView.swift index d5a694d1d7e..9eda4e4920f 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedLowBatteryView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedLowBatteryView.swift @@ -49,8 +49,9 @@ struct PointOfSaleCardPresentPaymentReaderUpdateFailedLowBatteryView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentReaderUpdateFailedLowBatteryView( viewModel: .init(batteryLevel: nil, retrySearchAction: {}, cancelUpdateAction: {}), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedNonRetryableView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedNonRetryableView.swift index 20bcfce1e72..57ec2520a02 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedNonRetryableView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedNonRetryableView.swift @@ -33,8 +33,9 @@ struct PointOfSaleCardPresentPaymentReaderUpdateFailedNonRetryableView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentReaderUpdateFailedNonRetryableView( viewModel: .init(cancelUpdateAction: {}), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedView.swift index 6f1e81a5fbf..3fe7041c006 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentReaderUpdateFailedView.swift @@ -37,8 +37,9 @@ struct PointOfSaleCardPresentPaymentReaderUpdateFailedView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentReaderUpdateFailedView( viewModel: .init(retryAction: {}, cancelUpdateAction: {}), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersFailedView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersFailedView.swift index c0552c239d1..aa7fcc902c5 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersFailedView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersFailedView.swift @@ -35,8 +35,9 @@ struct PointOfSaleCardPresentPaymentScanningForReadersFailedView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentScanningForReadersFailedView( viewModel: PointOfSaleCardPresentPaymentScanningFailedAlertViewModel( error: NSError(domain: "", code: 1, userInfo: nil), diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersView.swift index eb9078b29a9..8e877d4a889 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Connection Alerts/PointOfSaleCardPresentPaymentScanningForReadersView.swift @@ -35,8 +35,9 @@ struct PointOfSaleCardPresentPaymentScanningForReadersView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentScanningForReadersView( viewModel: PointOfSaleCardPresentPaymentScanningForReadersAlertViewModel( endSearchAction: {}), diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentActivityIndicatingMessageView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentActivityIndicatingMessageView.swift index 06eda922f4e..230fea945b5 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentActivityIndicatingMessageView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentActivityIndicatingMessageView.swift @@ -38,8 +38,9 @@ private extension PointOfSaleCardPresentPaymentActivityIndicatingMessageView { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentActivityIndicatingMessageView( title: "Checking order", message: "Getting ready", diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCancelledOnReaderMessageView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCancelledOnReaderMessageView.swift index 8acbf567cc1..67797364266 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCancelledOnReaderMessageView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCancelledOnReaderMessageView.swift @@ -44,8 +44,9 @@ struct PointOfSaleCardPresentPaymentCancelledOnReaderMessageView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentCancelledOnReaderMessageView( viewModel: PointOfSaleCardPresentPaymentCancelledOnReaderMessageViewModel(tryPaymentAgainButtonAction: {}), animation: .init(namespace: namespace) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCaptureErrorMessageView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCaptureErrorMessageView.swift index 0592175ec32..3aa28ec4693 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCaptureErrorMessageView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentCaptureErrorMessageView.swift @@ -62,8 +62,9 @@ struct PointOfSaleCardPresentPaymentCaptureErrorMessageView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentCaptureErrorMessageView( viewModel: PointOfSaleCardPresentPaymentCaptureErrorMessageViewModel( tryAgainButtonAction: {}, diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentErrorMessageView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentErrorMessageView.swift index ddda631e26a..89d3f867fe4 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentErrorMessageView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentErrorMessageView.swift @@ -56,8 +56,9 @@ struct PointOfSaleCardPresentPaymentErrorMessageView: View { } } +@available(iOS 17.0, *) #Preview("Generic retry") { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentErrorMessageView( viewModel: PointOfSaleCardPresentPaymentErrorMessageViewModel( @@ -69,8 +70,9 @@ struct PointOfSaleCardPresentPaymentErrorMessageView: View { ) } +@available(iOS 17.0, *) #Preview("Retry with another payment method") { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentErrorMessageView( viewModel: PointOfSaleCardPresentPaymentErrorMessageViewModel( diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentIntentCreationErrorMessageView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentIntentCreationErrorMessageView.swift index 07ebed0eb59..cb67a332aea 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentIntentCreationErrorMessageView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentIntentCreationErrorMessageView.swift @@ -52,8 +52,9 @@ struct PointOfSaleCardPresentPaymentIntentCreationErrorMessageView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentIntentCreationErrorMessageView( viewModel: PointOfSaleCardPresentPaymentIntentCreationErrorMessageViewModel( diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentNonRetryableErrorMessageView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentNonRetryableErrorMessageView.swift index 605f34a9c1e..aa3dabb21c0 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentNonRetryableErrorMessageView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentNonRetryableErrorMessageView.swift @@ -51,8 +51,9 @@ struct PointOfSaleCardPresentPaymentNonRetryableErrorMessageView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentNonRetryableErrorMessageView( viewModel: PointOfSaleCardPresentPaymentNonRetryableErrorMessageViewModel( error: CardReaderServiceError.paymentCapture( diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentValidatingOrderErrorMessageView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentValidatingOrderErrorMessageView.swift index 8b72c0d06f5..9e8057b64c8 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentValidatingOrderErrorMessageView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSaleCardPresentPaymentValidatingOrderErrorMessageView.swift @@ -45,8 +45,9 @@ struct PointOfSaleCardPresentPaymentValidatingOrderErrorMessageView: View { } } +@available(iOS 17.0, *) #Preview { - @Namespace var namespace + @Previewable @Namespace var namespace return PointOfSaleCardPresentPaymentValidatingOrderErrorMessageView( viewModel: PointOfSaleCardPresentPaymentValidatingOrderErrorMessageViewModel( error: CardReaderServiceError.paymentCapture(