Skip to content

Commit

Permalink
added swift version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ab1470 committed Oct 3, 2024
1 parent ec4edcd commit e9597e7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e9597e7

Please sign in to comment.