Skip to content
This repository was archived by the owner on Oct 10, 2018. It is now read-only.

darrarski/DRSwipeMenu-iOS

Repository files navigation

DRSwipeMenu (iOS)

Customizable swipe-to-reveal menu for iOS apps. Compatible with iOS 7 and later, tested under iOS 7 and iOS 8.

DRSwipeMenu iOS screenshot 1 DRSwipeMenu iOS screenshot 2

Instalation

You can integrate DRSwipeMenu with your project using Cocoapods. To do so, you will need to add one of the following lines to your Podfile:

For stable release (recommended):

pod 'DRSwipeMenu', '~> 2.0.1'

Which creates dependency for version >= 2.0.1 and < 2.1

For most recent or exact development version (not recommended on production):

pod 'DRSwipeMenu', :git => 'https://github.com/darrarski/DRSwipeMenu-iOS.git', :tag => 'VERSION_TAG'

Where VERSION_TAG you should put tag name for given version (ex. "v2.0.1"). It is recommended to set version explicity instead of using most recent version, as backward compatibility is not warranted.

You can also download zip archive of given release from releases page.

Usage

Check out included example project. It shows how to use swipe menu on UITableViewCell, but menu could be embedded anywhere in the view hierarchy.

Changelog

v2.0.1
  • Added shouldCloseByTapingOnMainView property to DRSwipeMenuView. If set to YES, tapping on center view closes menu. This will block user interactions with center view while menu is revealed. Default value is NO.
v2.0.0
  • Source code refactored and cleaned up
  • Supports left and right swipe menu
  • Example app updated
v1.0.0
  • Initial release
  • Right swipe menu
  • iOS 7 and iOS 8 compatible

License

The MIT License (MIT) - check out included LICENSE file

Icons used in example app comes from icons8.com site.