Skip to content

Commit

Permalink
PurchaseTester: fixed release compilation
Browse files Browse the repository at this point in the history
`debugRevenueCatOverlay` is only available on `DEBUG`
  • Loading branch information
NachoSoto committed Jun 22, 2023
1 parent c166023 commit 9650be1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct HomeView: View {
}

var body: some View {
#if !os(xrOS)
#if DEBUG && !os(xrOS)
if #available(iOS 16.0, macOS 13.0, *) {
self.content
.debugRevenueCatOverlay(isPresented: self.$debugOverlayVisible)
Expand Down Expand Up @@ -301,13 +301,15 @@ private struct CustomerInfoHeaderView: View {
}
#endif

#if DEBUG
if #available(iOS 16.0, macOS 13.0, *) {
Button {
self.debugOverlayVisible.wrappedValue = true
} label: {
Text("Debug")
}
}
#endif

Spacer()

Expand Down

0 comments on commit 9650be1

Please sign in to comment.