diff --git a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift index 756a7254..0c3b4eae 100644 --- a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift +++ b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift @@ -126,9 +126,11 @@ extension KlaviyoWebViewController: WKScriptMessageHandler { // MARK: - Previews +#if swift(>=5.9) @available(iOS 17.0, *) #Preview("Klaviyo.com") { let url = URL(string: "https://www.klaviyo.com")! let viewModel = KlaviyoWebViewModel(url: url) return KlaviyoWebViewController(viewModel: viewModel) } +#endif