UIButton Configuration iOS 15 in Swift

Опубликовано: 09 Июнь 2021
на канале: iOS Shiga
1,005
7

A configuration that specifies the appearance and behavior of a button and its contents.

You can configure and update a button with a UIButton.Configuration. A button configuration contains all the customization options available with other methods, such as setTitle(_:for:), and can serve as a replacement for those methods. Alternatively, you can use a configuration in combination with these other methods and adopt new button behaviors and appearance without rewriting your customized UIButton code.