Skip to content

Commit

Permalink
Update WordPress/Classes/ViewRelated/Blog/Blog Details/Detail Header/…
Browse files Browse the repository at this point in the history
…SiteIconView.swift

Co-authored-by: Momo Ozawa <[email protected]>
  • Loading branch information
kean and momo-ozawa committed Aug 21, 2023
1 parent 1805a9f commit 5eccbcd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class SiteIconView: UIView {

/// Set the menu to be displayed when the button is tapped. The menu replaces
/// teh default on tap action.
func setMenu(_ menu: UIMenu, onMenuTriggerd: @escaping () -> Void) {
func setMenu(_ menu: UIMenu, onMenuTriggered: @escaping () -> Void) {
button.menu = menu
button.showsMenuAsPrimaryAction = true
button.addAction(UIAction { _ in onMenuTriggerd() }, for: .menuActionTriggered)
button.addAction(UIAction { _ in onMenuTriggered() }, for: .menuActionTriggered)
}

private let button: UIButton = {
Expand Down

0 comments on commit 5eccbcd

Please sign in to comment.