diff --git a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift index 5eadedc4..45c6725b 100644 --- a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift +++ b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewController.swift @@ -172,6 +172,7 @@ func createKlaviyoWebPreview(viewModel: KlaviyoWebViewModeling) -> UIViewControl return createKlaviyoWebPreview(viewModel: viewModel) } +#if swift(>=6.0) @available(iOS 17.0, *) #Preview("JS Test Page") { let indexHtmlFileUrl = Bundle.module.url(forResource: "jstest", withExtension: "html")! @@ -179,3 +180,5 @@ func createKlaviyoWebPreview(viewModel: KlaviyoWebViewModeling) -> UIViewControl return KlaviyoWebViewController(viewModel: viewModel) } #endif + +#endif