@craft-native/ios 0.0.132 → 0.0.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craft-native/ios",
3
- "version": "0.0.132",
3
+ "version": "0.0.133",
4
4
  "homepage": "https://github.com/craft-native/craft/tree/main/packages/ios#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1822,9 +1822,14 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
1822
1822
  }
1823
1823
  }
1824
1824
  let item = UIBarButtonItem(customView: button)
1825
- // Keep the custom-view item compatible with the Xcode SDKs used by
1826
- // Craft's release matrix; iOS 26-only bar-item APIs are not required
1827
- // for the account surface itself.
1825
+ // iOS 26 groups adjacent bar items on one glass platter and tints
1826
+ // their custom views with it: the two 44-point circles came out as
1827
+ // solid accent ovals inside a capsule, unlike the web screens' bar.
1828
+ // The button draws its own surface, so it opts out of the platter.
1829
+ // Guarded by compiler too, for the older SDKs in the release matrix.
1830
+ #if compiler(>=6.2)
1831
+ if #available(iOS 26.0, *) { item.hidesSharedBackground = true; item.sharesBackground = false }
1832
+ #endif
1828
1833
  return item
1829
1834
  }
1830
1835