Latest 1.0.1
Homepage https://github.com/burntheroad/RoundDropMenu
License MIT
Platforms ios 8.0, requires ARC
Authors

Round-Drop-Menu

Build Status

Simple highly customizable iOS component written in Swift gives you another way to represent data. Round-Drop-Menu is great for small sets of visual information.

RoundDropMenu

Installation

RoundDropMenu is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RoundDropMenu'

Usage

Round-Drop-Menu usage is very similar to UITableView or UICollectionView. You should simply:

  1. Place RoundDropMenu in your View Controller.
  2. Conform your View Controller to RoundDropMenuDataSource and implement two methods:
    • numberOfDropsInRoundDropMenu(menu: RoundDropMenu) -> Int
    • roundDropMenu(menu: RoundDropMenu, dropViewForIndex index: Int) -> DropView
  3. Set RoundDropMenu dataSource to your View Controller.
  4. Optionally conform to RoundDropMenuDelegate to get method roundDropMenu(menu: RoundDropMenu, didSelectDropWithIndex index: Int)

Customization

You can change appearance of menu by setting next properties:

DropView:
  • color – default color of the drops
  • highlitedColor – color of view in highlithed state.
RoundDropMenu:
  • color – color of the oval in the center of menu.
  • offset – padding from view bounds to oval.
  • maxDropRadius – radius of the drop in the center of menu.
  • minDropRadius – minimal radius of the drop.

TODOs:

  • [ ] CocoaPods/Carthage/SPM
  • [ ] Implement scroll deceleration
  • [ ] More customization options

Author

Latest podspec

{
    "name": "RoundDropMenu",
    "version": "1.0.1",
    "summary": "Simple menu written on Swift that ideally suits small sets of visual data.",
    "description": ""Simple highly customizable iOS component written in Swift gives you another way to represent data. Round-Drop-Menu is great for small sets of visual information."",
    "homepage": "https://github.com/burntheroad/RoundDropMenu",
    "screenshots": "https://camo.githubusercontent.com/c15a3487eec988653ac84155257f7490275acc98/687474703a2f2f692e696d6775722e636f6d2f674a4c446d41502e676966",
    "license": "MIT",
    "authors": {
        "burntheroad": "[email protected]"
    },
    "source": {
        "git": "https://github.com/burntheroad/RoundDropMenu.git",
        "tag": "1.0.1"
    },
    "social_media_url": "https://twitter.com/monkey_has_gone",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "RoundDropMenu": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This