0 Replies
      Latest reply on Nov 19, 2019 1:38 PM by tornado-watch
      tornado-watch Level 1 Level 1 (0 points)

        I have an UIButton that is aligned left and has a default text color of DarkText.

        I change the text color by invoking UIButton.titleLabel.textColor = some UIColor.

        Then I change the alignment of the UIButton by invoking UIButton.contentHorizontalAlignment = UIControl.ContentHorizontalAlignment.center.

        The button text is moved to the center and the button text color reverts to the default (DarkText) color.


        Is this a bug or a feature?