Skip to content

Commit

Permalink
Fix import issue with SafariView not being compatible to some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Oct 21, 2024
1 parent ebcdd90 commit eb23ef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct ButtonComponentView: View {
action: { try await performAction() },
label: { StackComponentView(viewModel: viewModel.stackViewModel, onDismiss: self.onDismiss) }
)
#if canImport(SafariServices)
#if canImport(SafariServices) && canImport(UIKit)
.sheet(isPresented: .isNotNil($inAppBrowserURL)) {
SafariView(url: inAppBrowserURL!)
}.presentCustomerCenter(isPresented: $showCustomerCenter) {
Expand Down
2 changes: 1 addition & 1 deletion RevenueCatUI/Views/SafariView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//
// Created by Antonio Rico Diez on 2024-10-18.

#if canImport(SafariServices)
#if canImport(SafariServices) && canImport(UIKit)

import SafariServices
import SwiftUI
Expand Down

0 comments on commit eb23ef7

Please sign in to comment.