Skip to content

Commit

Permalink
hide the preview too
Browse files Browse the repository at this point in the history
  • Loading branch information
ndurell committed Dec 18, 2024
1 parent d03f9e0 commit 63c877e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,13 @@ 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")!
let viewModel = JSTestWebViewModel(url: indexHtmlFileUrl)
return KlaviyoWebViewController(viewModel: viewModel)
}
#endif

#endif

0 comments on commit 63c877e

Please sign in to comment.