Skip to content

Commit

Permalink
Paywalls: open footer links on Safari on Catalyst
Browse files Browse the repository at this point in the history
Follow up to #3475.
This new implementation doesn't make sense (and doesn't work very well) on Catalyst. It will now fall back to the previous implementation and open the link on a new window (using the default system browser).
  • Loading branch information
NachoSoto committed Dec 8, 2023
1 parent 2a9e190 commit 4cc0a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RevenueCatUI/Views/FooterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private struct LinkButton: View {
}

var body: some View {
#if canImport(WebKit) && !os(macOS)
#if canImport(WebKit) && !os(macOS) && !targetEnvironment(macCatalyst)
Button {
self.displayLink = true
} label: {
Expand Down

0 comments on commit 4cc0a16

Please sign in to comment.