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()

View File

@@ -54,7 +54,6 @@ struct StepView: View {
Rectangle()
.foregroundColor(.green)
.frame(width: max(0, ((width - (Constants.padding * 2)) / CGFloat(numberOfSteps - 1)) * CGFloat(currentStep) - (Constants.circleWidth / 2)), height: 5)
.animation(.spring())
HStack {
ForEach(0..<numberOfSteps) { index in
ZStack {