I can set the title for the normal state with this:
let buttonTitle = NSAttributedString(string: "Book", attributes: attributes)
buttonNode.titleNode.attributedText = buttonTitle
However this doesn't set the title for the button's disabled state. To accomplish this, I tried adding the following:
buttonNode.setAttributedTitle(buttonTitle, for: .disabled)
However this then removes the tile for the normal state. There is no ASControlState.normal
.
How can I set the button's title to be the same in all states?