Skip to content

Instantly share code, notes, and snippets.

Created Jan 8, 2021
What would you like to do?
@available(OSX 10.16, *)
@available(iOS, unavailable)
@available(tvOS, unavailable)
@available(watchOS, unavailable)
struct PasteView: View {
@State var text = String()
let utType = UTType.text
var body: some View {
VStack {
TextEditor(text: $text)
PasteButtonView(utType: utType, text: $text)
.frame(width: 300, height: 300)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment