Skip to content

Commit 1ef07cb

Browse files
authored
Update to DragSpeed
1 parent 2ae239b commit 1ef07cb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Pod/Classes/KolodaView/DraggableCardView/DraggableCardView.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ public enum DragSpeed: Double, Codable, CaseIterable {
1616
case kindaFast = 0.75
1717
case fast = 0.5
1818
case ultraFast = 0.33
19+
20+
var label: String {
21+
switch self {
22+
case .ultraSlow: return "Ultra Slow"
23+
case .slow: return "Slow"
24+
case .kindaSlow: return "Kinda Slow"
25+
case .default: return "Normal"
26+
case .kindaFast: return "Kinda Fast"
27+
case .fast: return "Fast"
28+
case .ultraFast: return "Ultra Fast"
29+
}
30+
}
1931
}
2032

2133
protocol DraggableCardDelegate: AnyObject {

0 commit comments

Comments
 (0)