From 3af7c29c00ce8a26e1d01e449f928b2c49f35803 Mon Sep 17 00:00:00 2001 From: dcrawbuck Date: Mon, 17 Aug 2026 16:14:36 +0000 Subject: [PATCH] feat(ios): update for 4.16.2 Co-Authored-By: Claude Sonnet 5 --- content/docs/ios/changelog.mdx | 19 +++++++++++++++++++ content/docs/ios/index.mdx | 2 +- .../ios/sdk-reference/getDeviceAttributes.mdx | 4 ++++ content/docs/ios/sdk-reference/index.mdx | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/content/docs/ios/changelog.mdx b/content/docs/ios/changelog.mdx index 31186bbb..527cbeaa 100644 --- a/content/docs/ios/changelog.mdx +++ b/content/docs/ios/changelog.mdx @@ -7,6 +7,25 @@ description: "Release notes for the Superwall iOS SDK" The changelog for `SuperwallKit`. Also see the [releases](https://github.com/superwall/Superwall-iOS/releases) on GitHub. +## 4.16.2 + +### Enhancements + +- Adds the user's system-wide text size (Dynamic Type) as three device attributes for use in paywalls and audience filters: `fontScale`, `fontSize`, and `preferredContentSizeCategory`. +- Links subscriptions to the user server-side after successful purchase or restore. + +### Fixes + +- Fixes issue on localized paywalls where the default language would briefly show before re-rendering once device attributes arrive. +- Fixes a crash when an audience filter contains an expression that can't be evaluated, such as a computed property with an unquoted argument (`daysSince(app_install)`). Updates Superscript to 1.0.15, which also stops any future evaluation failure from aborting the app. View the original Rust release changelog [here](https://github.com/superwall/superscript/releases/tag/1.0.15). +- Fixes network requests that can never succeed, such as those with an invalid API key, taking up to a minute to fail instead of failing straight away. Timeouts and server errors still retry as before. +- Fixes failed network requests being reported as a decoding error rather than the HTTP error that actually occurred. +- Fixes issue where the paywall debugger wouldn't work for accounts with many paywalls. +- Fixes Main Thread Checker warnings caused by reading the device's interface style and text size from a background thread. +- Prevents unused App Tracking Transparency support from triggering App Store Connect tracking warnings. +- Stops Apple's microphone, location, and contacts class and selector names appearing in your app's binary when you don't use those permissions. +- Fixes the app's accent color resetting to the system blue when configuring the SDK from a SwiftUI `App` initializer. + ## 4.16.1 ### Enhancements diff --git a/content/docs/ios/index.mdx b/content/docs/ios/index.mdx index 8cf3a8be..4a620ea0 100644 --- a/content/docs/ios/index.mdx +++ b/content/docs/ios/index.mdx @@ -50,6 +50,6 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues with the SDK, please [open an issue on GitHub](https://github.com/superwall/superwall-ios/issues). diff --git a/content/docs/ios/sdk-reference/getDeviceAttributes.mdx b/content/docs/ios/sdk-reference/getDeviceAttributes.mdx index 5d5cbac6..e82db9be 100644 --- a/content/docs/ios/sdk-reference/getDeviceAttributes.mdx +++ b/content/docs/ios/sdk-reference/getDeviceAttributes.mdx @@ -30,6 +30,9 @@ Returns a dictionary mapping attribute names to their values. Common attributes - `localeIdentifier` - The device locale - `osVersion` - The iOS version - `model` - The device model +- `fontScale` - The user's system-wide Dynamic Type scale factor, e.g. `1.0` at the default size (available in version 4.16.2+) +- `fontSize` - The user's system-wide Dynamic Type font size in points, normalized against a 16pt baseline (available in version 4.16.2+) +- `preferredContentSizeCategory` - The user's system-wide Dynamic Type content size category, e.g. `large`, `xLarge`, `xxxLarge`, or an `accessibility*` variant (available in version 4.16.2+) - And many more device-specific attributes ## Usage @@ -62,3 +65,4 @@ Task { - Device attributes are automatically used in audience filters - `isApplePayAvailable` was added in 4.9.0, updated in 4.10.5, and deprecated in 4.11.2 (now always `true`) - `swiftVersion` and `compilerVersion` were added in version 4.7.0 +- `fontScale`, `fontSize`, and `preferredContentSizeCategory` were added in version 4.16.2 diff --git a/content/docs/ios/sdk-reference/index.mdx b/content/docs/ios/sdk-reference/index.mdx index 4c9c1399..4814e52d 100644 --- a/content/docs/ios/sdk-reference/index.mdx +++ b/content/docs/ios/sdk-reference/index.mdx @@ -16,6 +16,6 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues with the SDK, please [open an issue on GitHub](https://github.com/superwall/superwall-ios/issues).