All Projects → KenanAtmaca → KActionMenu

KenanAtmaca / KActionMenu

Licence: MIT license
Like to iOS 3D touch menu

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to KActionMenu

Swiftpagemenu
Customizable Page Tab Menu Controller 👍
Stars: ✭ 233 (+1009.52%)
Mutual labels:  menu, ios-ui
Hhfloatingview
An easy to use and setup floating view for your app. 🎡
Stars: ✭ 93 (+342.86%)
Mutual labels:  menu, ios-ui
nativescript-menu
A plugin that adds a pop-up menu to NativeScript
Stars: ✭ 17 (-19.05%)
Mutual labels:  menu
HLBarIndicatorView
Activity indicator view
Stars: ✭ 30 (+42.86%)
Mutual labels:  ios-ui
ContextMenuSwift
A better version of iOS 13 Context Menu
Stars: ✭ 162 (+671.43%)
Mutual labels:  menu
AttachmentInput
AttachmentInput is image picker keyboard.
Stars: ✭ 30 (+42.86%)
Mutual labels:  ios-ui
godot-radial-menu
A radial menu for Godot, supports Mobile & Desktop
Stars: ✭ 88 (+319.05%)
Mutual labels:  menu
TipMenu
仿QQ长按弹出复制、删除、分享提示层
Stars: ✭ 20 (-4.76%)
Mutual labels:  menu
androidthings-mqtt-alarm-panel
Android Things Alarm Control Panel for Home Assistant
Stars: ✭ 69 (+228.57%)
Mutual labels:  touchscreen
vue3-context-menu
A very simple context menu component for Vue3 一个简洁美观简单的Vue3右键菜单组件
Stars: ✭ 74 (+252.38%)
Mutual labels:  menu
FacebookMessengerActivity
Share with Facebook Messenger App.
Stars: ✭ 16 (-23.81%)
Mutual labels:  ios-ui
KlipperScreen
GUI for Klipper
Stars: ✭ 515 (+2352.38%)
Mutual labels:  touchscreen
Firmware Over The Air
graduation project of ITI, flashing a new firmware over the air for automotive industry
Stars: ✭ 18 (-14.29%)
Mutual labels:  touchscreen
MaskedLabel
MaskedLabel is a UILabel subclass that allows you to easily apply a gradient to its text or to make it transparent.
Stars: ✭ 20 (-4.76%)
Mutual labels:  ios-ui
vue-nested-menu
A simple hands-on mobile nested menu UI component with a smooth slide animation
Stars: ✭ 34 (+61.9%)
Mutual labels:  menu
vue-bottom-navigation
Vue bottom navigation
Stars: ✭ 56 (+166.67%)
Mutual labels:  menu
SideMenuSwiftDemo
SideMenu in Swift with autolayout
Stars: ✭ 79 (+276.19%)
Mutual labels:  menu
UnityCore
A collection of essential game systems for Unity 3D. These generic systems can be applied to any Unity project.
Stars: ✭ 105 (+400%)
Mutual labels:  menu
AnimationMenu
Animation Menu like on Material Design way
Stars: ✭ 49 (+133.33%)
Mutual labels:  menu
toggle-menu
支持4个方位的按钮弹出菜单
Stars: ✭ 49 (+133.33%)
Mutual labels:  menu

KActionMenu


MIT Licance Pod Tag Swift

Requirements

  • Xcode 9.0 +
  • iOS 11.0 or greater

Installation

CocoaPods

  1. Install CocoaPods
  2. Add this repo to your Podfile
platform :ios, '11.0'

target 'ProjectName' do
  use_frameworks!
  pod 'KActionMenu'
end
  1. Run pod install
  2. Open up the new .xcworkspace that CocoaPods generated
  3. Whenever you want to use the library: import KActionMenu

Manually

  1. Simply download the KActionMenu source files and import them into your project.

Usage

import UIKit

class ViewController: UIViewController {
    
    @IBOutlet weak var bgImageView: UIImageView!
    
    var menu:KActionMenu!

    override func viewDidLoad() {
        super.viewDidLoad()
        bgImageView.addGestureRecognizer(UILongPressGestureRecognizer(target: self, action: #selector(longPressAction)))
        
        menu = KActionMenu(rootView: self.view) // 1.
        menu.view.table.actionDelegate = self
        menu.view.screenDelegate = self
        menu.setMenuStyle(.light) // .light, .dark
    }
    
    @objc func longPressAction(gesture: UILongPressGestureRecognizer) {
        let location = gesture.location(in: bgImageView)
        
        menu.show(items: [("Follow", UIImage(named: "add")), ("Camera", UIImage(named: "cam")), ("Share", UIImage(named: "share")), ("Like", UIImage(named: "like"))], position: CGPoint(x: location.x, y: location.y), animation: .scale) // 2.
    }
}

extension ViewController: KActionDelegate, KActionScreenDelegate {
    func didCloseScreen() {
        print(" - Closed - ")
    }
    
    func touchItem(name: String, index: Int) {
        print(name, index)
        self.menu.view.close()
    }
}

License

Usage is provided under the MIT License. See LICENSE for the full details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].