From 21cc548531f7033ca4aefe69e2b5cb6d4cebf4a6 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Sun, 22 Nov 2026 14:46:56 +0900 Subject: [PATCH] fix(ios): mirror menuElementOrder in the SwiftPM header #1259 added an optional `menuElementOrder` member to FabricViewImplementationProtocol, but SwiftPM builds read the hand-kept spm-headers/react_native_menu-Swift.h, which did not declare it. Without it, MenuView.mm's `_view.menuElementOrder` does not compile under SwiftPM. scripts/check-spm.mjs caught this on master; #1259's CI predated that check. Co-Authored-By: Claude Opus 5.5 --- spm-headers/react_native_menu-Swift.h | 1 + 1 file changed, 1 insertion(+) diff --git a/spm-headers/react_native_menu-Swift.h b/spm-headers/react_native_menu-Swift.h index 81c0f306..2cadcb73 100644 --- a/spm-headers/react_native_menu-Swift.h +++ b/spm-headers/react_native_menu-Swift.h @@ -19,6 +19,7 @@ __attribute__((objc_runtime_name("_TtP17react_native_menu32FabricViewImplementat @property (nonatomic, copy, nullable) void (^onOpenMenu)(void); @optional @property (nonatomic) UIEdgeInsets hitSlop; +@property (nonatomic, strong, nullable) NSString *menuElementOrder; @end // The superclasses are flattened on purpose: MenuView.mm only ever reaches