Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions content/docs/ios/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion content/docs/ios/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

<SdkLatestVersion
version="4.16.1"
version="4.16.2"
repoUrl="https://github.com/superwall/Superwall-iOS"
/>
4 changes: 4 additions & 0 deletions content/docs/ios/sdk-reference/getDeviceAttributes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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+)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add the new attributes to the variable reference

When iOS developers look up properties for paywall templates or audience rules, content/docs/variable-reference.mdx:25-48 claims to list all device properties, but it still marks fontScale and fontSize as Android-only and omits preferredContentSizeCategory entirely. Update those rows with iOS 4.16.2 availability, account for the platform-specific fontSize units, and add the new category row so the documented feature can actually be discovered and used.

Useful? React with 👍 / 👎.

- And many more device-specific attributes

## Usage
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion content/docs/ios/sdk-reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

<SdkLatestVersion
version="4.16.1"
version="4.16.2"
repoUrl="https://github.com/superwall/Superwall-iOS"
/>
Loading