@craft-native/ios 0.0.329 → 0.0.338

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.329",
3
+ "version": "0.0.338",
4
4
  "homepage": "https://github.com/craft-native/craft/tree/main/packages/ios#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -6919,10 +6919,12 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
6919
6919
  }
6920
6920
  // The app script has no screen, so no bar and no tab bar to change.
6921
6921
  guard !isAppScript else { return }
6922
+ // Prepared tabs have a window and a top controller too. Keep their
6923
+ // options, but only the focused screen may change the shared chrome.
6922
6924
  if options.keys.contains("tabAccessory") {
6923
6925
  tabAccessory = options["tabAccessory"] as? [String: Any]
6924
6926
  tabAccessoryDeclared = true
6925
- if navigationController?.topViewController === self, view.window != nil {
6927
+ if navigationController?.topViewController === self, isShownOnScreen {
6926
6928
  CraftChrome.shared.updateTabAccessory(tabAccessory, owner: self)
6927
6929
  }
6928
6930
  }
@@ -6941,7 +6943,7 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
6941
6943
  }
6942
6944
  if let hidden = options["tabBarHidden"] as? Bool {
6943
6945
  tabBarHidden = hidden
6944
- if navigationController?.topViewController === self, view.window != nil {
6946
+ if navigationController?.topViewController === self, isShownOnScreen {
6945
6947
  CraftChrome.shared.setHiddenByScreen(hidden)
6946
6948
  }
6947
6949
  }