PasteButton
A system button that reads items from the pasteboard and delivers it to a closure.
Platform Compatibility
Tags
SwiftUI Code
@State private var pastedText: String = ""
var body: some View {
PasteButton(payloadType: String.self) { strings in
pastedText = strings[0]
}
}