TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2015 |
SPMSupports SPM | ✗ |
Maintained by Karry Oberes.
For Objective C Go to Build Settings of your project and search for Packaging. Under it you would find Defines Module, then change it to Yes. Then build your project after.
import PopUpMenu
var menu = PopUpButton(position: CGPointMake(0,0), frame: CGRectMake(7, 30, 35, 35), menuImage: menuIcon!, menuListTitle: ["Menu1", "Menu2", "Menu3", "Menu4"], menuIconNormal: ["Menu1", "Menu2", "Menu3", "Menu4"], menuIconHighlighted: ["Menu1H", "Menu2H", "Menu3H", "Menu4H"], menuBackgroundImage: "", menuBackgroundHighlightedImage: "")
menu.getProperties(UIColor.blackColor().colorWithAlphaComponent(0.7), buttonTitleHighlightedColor: UIColor.whiteColor(), buttonBackgroundColor: UIColor(red: 17/255.0, green: 193/255.0, blue: 210/255.0, alpha: 1.0), buttonSeparatorColor: UIColor.darkGrayColor(), buttonFont: UIFont(name: "HelveticaNeue-Light", size: 20)!)
self.view.addSubview(menu)
@import PopUpMenu;
PopUpButton *menu = [[PopUpButton alloc]initWithPosition:CGPointMake(0, 0) frame:CGRectMake(7, 30, 35, 35) menuImage:image menuListTitle:@[@"Menu1", @"Menu2", @"Menu3", @"Menu4"] menuIconNormal:@[@"Menu1", @"Menu2", @"Menu3", @"Menu4"] menuIconHighlighted:@[@"Menu1H", @"Menu2H", @"Menu3H", @"Menu4H"] menuBackgroundImage:@"" menuBackgroundHighlightedImage:@""];
[menu getProperties:[[UIColor blackColor] colorWithAlphaComponent:0.7] buttonTitleHighlightedColor:[UIColor whiteColor] buttonBackgroundColor:[UIColor colorWithRed:17/255.0 green:193/255.0 blue:210/255.0 alpha:1] buttonSeparatorColor:[UIColor darkGrayColor] buttonFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:20]];
[self.view addSubview:menu];
Run the Example Project to see the whole sample code on how to use the PopUpMenu pod in a project.
PopUpMenu is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PopUpMenu"
PopUpMenu is available under the MIT license. See the LICENSE file for more info.