Update Xcode and Cleanup Deprecations (#277)

* Cleanup.

* Remove obsolete animation

* Bump xcode
This commit is contained in:
Max Goedjen
2021-12-11 18:07:10 -08:00
committed by GitHub
parent 6bb9fd376f
commit 79f7177ffb
10 changed files with 22 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
import SwiftUI
import UniformTypeIdentifiers
struct CopyableView: View {
@@ -46,7 +47,7 @@ struct CopyableView: View {
}
}
.onDrag {
NSItemProvider(item: NSData(data: text.data(using: .utf8)!), typeIdentifier: kUTTypeUTF8PlainText as String)
NSItemProvider(item: NSData(data: text.data(using: .utf8)!), typeIdentifier: UTType.utf8PlainText.identifier)
}
.onTapGesture {
copy()