Specifies the style of a button.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
enum ButtonType : Int
Specifies the style of a button.
SDKs
Framework
enum ButtonType : Int
case custom
No button style.
case system
A system style button, such as those shown in navigation bars and toolbars.
case detail Disclosure
A detail disclosure button.
case info Light
An information button that has a light background.
case info Dark
An information button that has a dark background.
case contact Add
A contact add button.
case plain
A standard system button without a blurred background view.
static var rounded Rect: UIButton .Button Type
A rounded-rectangle style button.
init(type: UIButton .Button Type)
Creates and returns a new button of the specified type.