@craft-native/ios 0.0.148 → 0.0.149

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.148",
3
+ "version": "0.0.149",
4
4
  "homepage": "https://github.com/craft-native/craft/tree/main/packages/ios#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -3274,6 +3274,12 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
3274
3274
  if navigationController?.topViewController === self {
3275
3275
  navigationController?.popViewController(animated: true)
3276
3276
  }
3277
+ case "NAVIGATE_POP_TO_ROOT":
3278
+ // Back to the first screen of this screen's stack in one move: a
3279
+ // finished task (a saved workout) closes the way it was reached.
3280
+ if navigationController?.topViewController === self {
3281
+ navigationController?.popToRootViewController(animated: true)
3282
+ }
3277
3283
  case "API_REQUEST":
3278
3284
  guard let id = message["id"] as? String else { return }
3279
3285
  let args = payload["args"] as? [Any] ?? []