UIControlStateApplication
UIControlState is an enumeration in the UIKit framework of Apple's iOS, iPadOS, tvOS, and watchOS operating systems. It defines the different states a user interface element, such as a button or a switch, can be in. These states are crucial for customizing the appearance and behavior of UI elements based on user interaction or application logic.
The most common states include: normal, highlighted, disabled, and selected. The normal state represents the default
Developers use UIControlState to modify properties like a control's background color, image, or text. For example,