1 Reply
      Latest reply on May 22, 2020 10:02 AM by Macho Man Randy Savage
      johnbrayton Level 1 Level 1 (0 points)

        I am looking for a way to apply custom fonts and colors to context menus. I was able to change UIAction text color with the appearance manager:

         

        [[[UILabel class] appearanceWhenContainedInInstancesOfClasses:@[NSClassFromString(@"_UIContextMenuActionView")]] setTextColor:[UIColor greenColor]];

        But doing the same with the font does not work for me:

         

        [[[UILabel class] appearanceWhenContainedInInstancesOfClasses:@[NSClassFromString(@"_UIContextMenuActionView")]] setFont:[UIFont systemFontOfSize:30]];

        Similarly I cannot find a way to apply custom colors to the separator lines between UIActions or inline UIMenus.

         

        Is there a way to do this?

         

        Thanks.

         

        John