-
Notifications
You must be signed in to change notification settings - Fork 82
Add Button support #1024
Copy link
Copy link
Open
Labels
area: event-gestureEvents, gestures, tracing, or interaction plumbing.Events, gestures, tracing, or interaction plumbing.area: viewView APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.type: featureNew API, behavior, platform support, or user-facing capability.New API, behavior, platform support, or user-facing capability.
Description
Activity
Metadata
Metadata
Assignees
Labels
area: event-gestureEvents, gestures, tracing, or interaction plumbing.Events, gestures, tracing, or interaction plumbing.area: viewView APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.type: featureNew API, behavior, platform support, or user-facing capability.New API, behavior, platform support, or user-facing capability.
Summary
Complete public
Buttonsupport so buttons render their labels and invoke their actions through supported input mechanisms.Scope
Buttonimplementation and its common label, title, and role initializers.ButtonStyle,PrimitiveButtonStyle, their configuration values,.buttonStyle(_:), and baseline default, plain, and borderless styles.Acceptance criteria
Button("Run") { ... }renders its label and invokes its action once per activation.API reference