-
-
Save sturdysturge/32b58fb7bd2ca44022a29e06619cf8d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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