Interactive previews iPhone
PasteButton
A system button that reads items from the pasteboard and delivers it to a closure.
Platform Compatibility
iOS 16.0+ iPadOS 16.0+ macOS 10.15+ visionOS 1.0+
Tags
SwiftUI Code
@State private var pastedText: String = ""
var body: some View {
PasteButton(payloadType: String.self) { strings in
pastedText = strings[0]
}
}Found an issue or have a suggestion?
Created: May 30, 2025Updated: December 27, 2025
More Button Components
View allGlass Button Styles
A button style that applies glass border artwork based on the button’s context
Explore Other Components
Browse allMin Max Current Value Gauge
Creates a gauge showing a value within a range and describes the gauge’s current, minimum, and maximum values
Music Picker
Presents a music picker to select items from the Apple Music catalog and the user’s music library.
Tab View Customization
Specifies the customizations to apply to the sidebar representation of the tab view.
MenuControlGroupStyle
A control group style that presents its content as a menu when the user presses the control, or as a submenu when nested within a larger menu
Value Tab View
Creates a tab view that uses a builder to create and specify selection values for its tabs.