Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
Structure

ButtonRole

The Compose SwiftUI form of SwiftUI's ButtonRole.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
class ButtonRole

Overview

This is the Kotlin form of SwiftUI ButtonRole: SwiftUI documentation. In Swift it reads:

struct ButtonRole

Topics

Type properties

val destructive: ButtonRole
SwiftUI ButtonRole.destructive
val close: ButtonRole
SwiftUI ButtonRole.close · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+
val cancel: ButtonRole
SwiftUI ButtonRole.cancel
val confirm: ButtonRole
SwiftUI ButtonRole.confirm · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+

Types

class ButtonRole
SwiftUI ButtonRole