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 is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RoundDropMenu'
Round-Drop-Menu usage is very similar to UITableView
or UICollectionView
. You should simply:
- Place
RoundDropMenu
in your View Controller. - Conform your View Controller to
RoundDropMenuDataSource
and implement two methods:
numberOfDropsInRoundDropMenu(menu: RoundDropMenu) -> Int
roundDropMenu(menu: RoundDropMenu, dropViewForIndex index: Int) -> DropView
- Set
RoundDropMenu
dataSource
to your View Controller. - Optionally conform to
RoundDropMenuDelegate
to get methodroundDropMenu(menu: RoundDropMenu, didSelectDropWithIndex index: Int)
You can change appearance of menu by setting next properties:
color
- default color of the dropshighlitedColor
- color of view in highlithed state.
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.
- CocoaPods/Carthage/SPM
- Implement scroll deceleration
- More customization options
- Arthur Myronenko - @monkey_has_gone