Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.61 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.61 KB

MenuController

An easy-to-use Action Menu Modal Controller inspired by iOS 13 Apple's native app implementation

Swift Version License PRs Welcome

Features

  • Supports Portrait and Landscape orientation
  • Glossy vibrant dark menu
  • Infinite Actions

Usage

import MenuController

let actions:[UIControlMenuAction] = [
    UIControlMenuAction(title: "Send Message", image: UIImage(systemName: "paperplane")!, handler: { _ in print("Sending Message") }),
    UIControlMenuAction(title: "Enable Wifi", image: UIImage(systemName: "wifi")!, handler: { _ in print("Wifi ON") }),
    UIControlMenuAction(title: "Delete", image: UIImage(systemName: "trash.fill")!, handler: { _ in print("Deleted ✅") })
]

let vc = MenuController(actions: actions)
self.present(vc, animated: true, completion: nil)

Requirements

  • iOS 13.0+
  • Xcode 11

Installation

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/anmolrajpal/MenuController", from: "1.0.0")
]

Menu Controller Demo

Meta

@ArAnmol

https://github.com/anmolrajpal/MenuController