diff --git a/Sources/UIComponent/Core/Model/Component/Component+Modifier.swift b/Sources/UIComponent/Core/Model/Component/Component+Modifier.swift index 0b024972..60c5e916 100644 --- a/Sources/UIComponent/Core/Model/Component/Component+Modifier.swift +++ b/Sources/UIComponent/Core/Model/Component/Component+Modifier.swift @@ -611,7 +611,7 @@ public extension Component { /// - Parameter menuBuilder: A closure that returns a `UIMenu` to be displayed when tapped. /// - Returns: A `PrimaryMenuComponent` containing the component and displays the menu when tapped. func primaryMenu(_ menuBuilder: @escaping () -> UIMenu) -> PrimaryMenuComponent { - PrimaryMenuComponent(component: self, menu: menuBuilder()) + PrimaryMenuComponent(component: self, menuBuilder: menuBuilder) } }