From d7ef1a5295feb639f609c8f2206223d40a275ce8 Mon Sep 17 00:00:00 2001 From: Pooja Gupta Date: Thu, 6 Sep 2018 16:33:07 +0530 Subject: [PATCH] - Added a feature for adding custom color for quick menu. --- IGCMenu/IGCMenu.h | 3 ++- IGCMenu/IGCMenu.m | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/IGCMenu/IGCMenu.h b/IGCMenu/IGCMenu.h index f65e282..fefdd1d 100644 --- a/IGCMenu/IGCMenu.h +++ b/IGCMenu/IGCMenu.h @@ -39,7 +39,8 @@ typedef enum { @property int maxColumn; //Maximium number of column,default is 3 @property int menuHeight; //height = width ,default is 65 @property IGCMenuBackgroundOptions backgroundType; //Default is BlurEffectDark - +@property (nonatomic) UIColor *menuItemColor; + -(void)showCircularMenu; -(void)hideCircularMenu; -(void)showGridMenu; diff --git a/IGCMenu/IGCMenu.m b/IGCMenu/IGCMenu.m index 4c2e8d2..9aeaebb 100644 --- a/IGCMenu/IGCMenu.m +++ b/IGCMenu/IGCMenu.m @@ -30,6 +30,7 @@ - (instancetype)init{ self.numberOfMenuItem = 0; self.menuRadius = 120; self.maxColumn = 3; + self.menuItemColor = [UIColor whiteColor]; self.backgroundType = BlurEffectDark; } return self; @@ -75,7 +76,7 @@ - (void)createMenuButtons{ menuNameLabel.font = [UIFont systemFontOfSize:12]; menuNameLabel.text = self.menuItemsNameArray[i]; [menuNameLabel sizeToFit]; - menuNameLabel.textColor = [UIColor whiteColor]; + menuNameLabel.textColor = self.menuItemColor; [pMenuButtonSuperView insertSubview:menuNameLabel belowSubview:self.menuButton]; [menuNameLabelArray addObject:menuNameLabel]; }