DropDownMenuKit

screenshot of DropDownMenuKit

UIKit drop down menu, simple yet flexible and written in Swift

Overview:

DropDownMenuKit is a custom UIKit control for iOS that allows you to show a menu attached to the navigation bar or toolbar. The menu appears with a sliding animation and can be customized with icons, embedded controls, or a checkmark to denote a selected row among multiple menu cells.

Features:

  • Customizable menu appearance
  • Supports icons, embedded controls, and checkmarks
  • Can be attached to navigation bar or toolbar
  • Compatible with iOS 11 and higher
  • Supports Swift 5

Carthage:

  1. Add the following line to your Cartfile: "github "DropDownMenuKit"
  2. Run carthage update to build the framework
  3. Drag the built DropDownMenuKit.framework into your Xcode project

CocoaPods:

  1. Add the following lines to your Podfile:
use_frameworks!
target 'YourTargetName' do
    pod 'DropDownMenuKit'
end
  1. Run pod install with CocoaPods 1.9 or newer

Manual:

  1. If you don't use Carthage or CocoaPods, you can manually add the framework or embed the source files into your project.
  2. Build the DropDownMenuKit framework and drop it into your Xcode project.
  3. Add the following files to your project: DropDownMenu.swift, DropDownMenuCell.swift, DropDownTitleView.swift, and DropDownMenuKit.xcassets.

App Extension Usage:

If you are using DropDownMenuKit in an app extension, you need to make sure to add the following flag to your Build Settings:

  1. Add -DAPP_EXTENSION to DropDownMenuKit > Build Settings > Other Swift Flags.

Summary:

DropDownMenuKit is a versatile UIKit control for iOS that allows you to easily add a customizable menu to your navigation bar or toolbar. With its support for icons, embedded controls, and checkmarks, you can create a rich and interactive menu experience for your users. The installation process is straightforward, with options for using Carthage, CocoaPods, or manual integration. Overall, DropDownMenuKit offers a convenient solution for implementing menus in your iOS apps.