Search code examples
swiftxcodeuibuttonswift5xcode13

UIButton title "Button" is not cleared after removing it from the attribute inspector


I cleared the title from attribute inspector, but while running the app, text "Button" is displaying. UIButton Attribute inspector

Output:

enter image description here

I checked different scenarios and the issue occurs only if the deployment target is below 15.0

Is there any solution for this?.

Xcode Version: 13.0 Project deployment target: 13.4


Solution

  • Change the button style from plain to default.

    enter image description here