Xcode Version 13.0 (13A233).
console output:
normal nil
highlighted nil
disabled nil
selected nil
focused nil
edit: I just updated the style from plain to default - heres the output. I think good things happened
normal Optional("Aaron")
highlighted Optional("Aaron")
disabled Optional("Aaron")
selected Optional("Aaron")
focused Optional("Aaron")
Post
Replies
Boosts
Views
Activity
Screenshot of code attached- I copied and pasted directly from your comment.
Output from console:
buttonPressed(_:) nil
Sate UIControlState(rawValue: 1)
Optional(<UILabel: 0x7f810f80dcf0; frame = (20 5.33333; 45 20.3333); text = 'Aaron'; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x60000028be30>>)
<UIButton: 0x7f810e70b9e0; frame = (167 433; 85 31); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x6000021ba480>> configuration=<UIButtonConfiguration: 0x600001d9c700> baseStyle=plain macStyle=automatic buttonSize=medium cornerStyle=dynamic title=<0x6000021d2280>:'Aaron' contentInsets=default imagePlacement=leading imagePadding=0 titlePadding=1 titleAlignment=automatic automaticallyUpdateForSelection background=<UIBackgroundConfiguration: 0x600001498600; Base Style = Custom; cornerRadius = 5.95; backgroundColor = UIExtendedGrayColorSpace 0 0>
Optional(<UIButton: 0x7f810e70b9e0; frame = (167 433; 85 31); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x6000021ba480>> configuration=<UIButtonConfiguration: 0x600001d9c700> baseStyle=plain macStyle=automatic buttonSize=medium cornerStyle=dynamic title=<0x6000021d2280>:'Aaron' contentInsets=default imagePlacement=leading imagePadding=0 titlePadding=1 titleAlignment=automatic automaticallyUpdateForSelection background=<UIBackgroundConfiguration: 0x600001498600; Base Style = Custom; cornerRadius = 5.95; backgroundColor = UIExtendedGrayColorSpace 0 0>)