I use
for (NSNumber *controlState in AllControlStates()) {
[uiButton setAttributedTitle:attributedStrings[controlState] forState:controlState.unsignedIntegerValue];
}
to set different title colors based on different controlState now.
How to use UIButtonConfiguration to set attributedTitle based on control state?
I am deprecating contentEdgeInsets for my button now, I have to set all the other properties on configuration to maintain the current look of my button.
Topic:
UI Frameworks
SubTopic:
UIKit