Releases: p3ol/access-package-ios
Releases · p3ol/access-package-ios
v2.0.0
Release v2.0.0 🎉
⚠️ BREAKING CHANGES
This release is a complete rewrite of the SDK api with backwards-incompatible changes.
The most notable change is the ability to create multiple paywall instances, by getting rid of the .instanciate()
method.
To put it simple, replace:
try? Access.instanciate(key: "<your app id>")
Access.config(...)
with:
var access = Access(key: "<your app id>")
access.config(...)
See migration from v1 to v2 for more information about the full list of API changes.
New
Custom mode
You can now use a custom
locking mode (in addition to the default enbedded
mode that hides a percentage of the parent view, and bottom-sheet
that overlays the whole content) to apply your own content-locking logic using onLock
& onRelease
events.
var access = Access(key: "<your_app_id>")
access.onLock {
...
}
access.onRelease {
...
}
var view: UIView? = access.createPaywall(pageType: "premium") {
print("paywall was dismissed")
}
if let view = view {
self.someView.addSubview(view)
}
Fixes
This release also brings a lot of quality-of-life fixes, especially if you use the SDK with SwiftUI.
v1.1.0
Initial release ✨
✨ Initial release
See documentation here: https://poool.dev/docs/access/ios