Skip to content

4.4.0

Latest

Choose a tag to compare

@x401om x401om released this 12 Nov 15:45

⚠️ Breaking

  • [Flows] Flows now require iOS 16 or later. AdaptyUI.getFlowConfiguration, AdaptyFlowController, AdaptyFlowView and the related APIs are available from iOS 16; if your app supports iOS 15, wrap them in if #available(iOS 16, *). The rest of the SDK still supports iOS 15.
  • AdaptyUI.Action.custom now carries arguments alongside id: case let .custom(id, arguments).
  • Custom assets: AdaptyUICustomAsset is renamed to AdaptyUIAsset (the old name is a deprecated alias). .color now takes a SwiftUI Color — pass a UIColor as Color(uiColor:). AdaptyUIFontAsset takes color:, letterSpacing: and lineHeight: instead of defaultColor:, defaultLetterSpacing: and defaultLineHeight:. A new .data case breaks exhaustive switch statements.
  • 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.
  • localizedBillingPeriod and localizedPeriod on AdaptySubscriptionPricingTerms and AdaptySubscriptionCommitmentInfo. AdaptyProduct.localizedBillingPeriod is 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