You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the compiler seems to think I'm using the wrong initializer.
I thought this was a conflict specific to my project but the same error appears when I create a clean project with only Adapty.
I'm using version 1.17.0, Installed with SPM, on SwiftUI if that makes a difference.
Please help 🙏
The text was updated successfully, but these errors were encountered:
From what I understand, if you look at the declaration of PaywallModel, you will see the required init?(json: Parameters) is not public; hence the compiler cannot access it.
I forked the repository and made the init public:
public required init?(json: Parameters) throws {
}
And it works fine. Although, the library authors can tell better if they want to expose the initializer of PaywallModel or not.
Hi,
I'm trying to mock PaywallModel so I can test the creation of Paywalls before submitting my IAP for review.
I looked at ModelsTest in the example project and created this similiar function:
For some reason, the compiler seems to think I'm using the wrong initializer.
I thought this was a conflict specific to my project but the same error appears when I create a clean project with only Adapty.
I'm using version 1.17.0, Installed with SPM, on SwiftUI if that makes a difference.
Please help 🙏
The text was updated successfully, but these errors were encountered: