Skip to content

Commit

Permalink
Add missing #if PAYWALL_COMPONENTS (#4241)
Browse files Browse the repository at this point in the history
Should fix the Xcode cloud failure.
  • Loading branch information
jamesrb1 authored Sep 4, 2024
1 parent cad537e commit 39a58b8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ struct SamplePaywallsList: View {

}

#if PAYWALL_COMPONENTS
func printComponents(_ components: [PaywallComponent])
{
let encoder = JSONEncoder()
Expand All @@ -117,6 +118,7 @@ struct SamplePaywallsList: View {
print("Failed to encode components: \(error)")
}
}
#endif

private func list(with loader: SamplePaywallLoader) -> some View {
List {
Expand Down

0 comments on commit 39a58b8

Please sign in to comment.