Latest 0.3.0
Homepage https://github.com/noppefoxwolf/NFQuickActionSheet
License MIT
Platforms ios 11.0
Authors

Requirements

Swift 4.0
iOS 11.0

Example

let longPress = UILongPressGestureRecognizer(target: self, action: #selector(ViewController.longPressAction))
longPress.minimumPressDuration = 0.2
button.addGestureRecognizer(longPress)
  @objc func longPressAction(_ sender: UILongPressGestureRecognizer) {
    switch sender.state {
    case .began:

      vc = QuickActionController.make(with: sender.view)
      vc?.addAction(
        QuickAction(title: "Camera", color: UIColor.lightGray, image: UIImage(named: "icons8-camera"), handler: { (_) in
          print("fav")
        })
      )
      vc?.addAction(
        QuickAction(title: "Favorite", color: UIColor.yellow, image: UIImage(named: "icons8-like"), handler: { (_) in
          print("rt")
        })
      )
      vc?.addAction(
        QuickAction(title: "Other", color: UIColor.darkGray, image: UIImage(named: "icons8-menu"), handler: { (_) in
          print("other")
        })
      )
      present(vc!, animated: true, completion: {
        self.vc?.gestureBegan(sender)
      })
    case .changed:
      vc?.gestureChanged(sender)
    case .ended:
      vc?.gestureEnded(sender)
    default: break
    }
  }

Installation

pod 'NFQuickActionSheet'

Author

🦊Tomoya Hirano, [email protected]

License

NFQuickActionSheet is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NFQuickActionSheet",
    "version": "0.3.0",
    "summary": "A short description of NFQuickActionSheet.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/noppefoxwolf/NFQuickActionSheet",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ud83eudd8aTomoya Hirano": "[email protected]"
    },
    "source": {
        "git": "https://github.com/noppefoxwolf/NFQuickActionSheet.git",
        "tag": "0.3.0"
    },
    "social_media_url": "https://twitter.com/noppefoxwolf",
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "NFQuickActionSheet/Classes/**/*"
}

Pin It on Pinterest

Share This