Repository navigation
⚠️ Breaking
- [Flows] Flows now require iOS 16 or later.
AdaptyUI.getFlowConfiguration,AdaptyFlowController,AdaptyFlowViewand the related APIs are available from iOS 16; if your app supports iOS 15, wrap them inif #available(iOS 16, *). The rest of the SDK still supports iOS 15. AdaptyUI.Action.customnow carriesargumentsalongsideid:case let .custom(id, arguments).- Custom assets:
AdaptyUICustomAssetis renamed toAdaptyUIAsset(the old name is a deprecated alias)..colornow takes a SwiftUIColor— pass aUIColorasColor(uiColor:).AdaptyUIFontAssettakescolor:,letterSpacing:andlineHeight:instead ofdefaultColor:,defaultLetterSpacing:anddefaultLineHeight:. A new.datacase breaks exhaustiveswitchstatements. - The fallback file format was changed, please update it.
✨ New
- [Flows] Custom elements: render your own SwiftUI views inside a flow with
AdaptyUICustomElementsResolver. A custom element reads its payload and assets, and sends messages to the flow. - [Flows]
sendAppMessage(_:)sends a message from the app to a running flow. - [Flows] Custom actions pass their arguments to the app.
- [Flows] Alert dialogs show localized strings.
localizedBillingPeriodandlocalizedPeriodonAdaptySubscriptionPricingTermsandAdaptySubscriptionCommitmentInfo.AdaptyProduct.localizedBillingPeriodis deprecated.
🐛 Fixed
- [Flows] A screen shown inside another screen could be laid out at the full device size (since 4.3.2).
- [Flows] In a flow whose layout direction differs from the app's, side safe-area insets landed on the wrong side.
- [Flows] Text could be truncated in rotated or scaled elements.
Full Changelog: 4.3.2...4.4.0