Skip to content

Commit

Permalink
Fix menuBuilder not being used in one modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzhao committed Mar 31, 2024
1 parent 07674de commit f132cde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit f132cde

Please sign in to comment.