Slide 23
Slide 23 text
6*ύʔπ
button.menu = UIMenu(title: "", options: .displayInline, children: [
UIAction(title: "item1", handler: { _ in }),
UIAction(title: "item2", handler: { _ in }),
UIAction(title: "item3", handler: { _ in }),
UIAction(title: "item4", handler: { _ in })
])
button.showsMenuAsPrimaryAction = true