Open PrakashMaharjan opened 5 years ago
Hi,
How to set dynamic title for menu based on the text? Currently I am using menuItemWidth Property value hardcoded as parameter. But for some text length short and for some text length long, it is not working properly.
let parameters: [CAPSPageMenuOption] = [ .menuItemSeparatorWidth(4.3), .useMenuLikeSegmentedControl(false), .menuItemSeparatorPercentageHeight(0.1), .menuHeight(44.0), .menuItemWidth(100.0), .scrollMenuBackgroundColor(.blue), .unselectedMenuItemLabelColor(.white), /.viewBackgroundColor(.blue) ]
How to set the menu item width based on width of the view title text?
Any suggestion would be appreciated.
Thank you
fixed out by adding
.menuItemWidthBasedOnTitleTextWidth(true) in parameters.
How to set Dynamic menu title two lines?
Hi,
How to set dynamic title for menu based on the text? Currently I am using menuItemWidth Property value hardcoded as parameter. But for some text length short and for some text length long, it is not working properly.
let parameters: [CAPSPageMenuOption] = [ .menuItemSeparatorWidth(4.3), .useMenuLikeSegmentedControl(false), .menuItemSeparatorPercentageHeight(0.1), .menuHeight(44.0), .menuItemWidth(100.0), .scrollMenuBackgroundColor(.blue), .unselectedMenuItemLabelColor(.white), /.viewBackgroundColor(.blue) ]
How to set the menu item width based on width of the view title text?
Any suggestion would be appreciated.
Thank you