Skip to content

Commit 25ef076

Browse files
committed
Add dragging timezones in Myke Mode
1 parent 0060b07 commit 25ef076

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Elsewhen/Views/MykeMode.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import SwiftUI
9+
import UniformTypeIdentifiers
910

1011
struct MykeMode: View {
1112

@@ -43,6 +44,9 @@ struct MykeMode: View {
4344
.foregroundColor(.secondary)
4445
}
4546
}
47+
.onDrag {
48+
NSItemProvider(item: tz.identifier.data(using: .utf8)! as NSData, typeIdentifier: UTType.utf8PlainText.identifier)
49+
}
4650
}
4751
.onMove(perform: move)
4852
}

0 commit comments

Comments
 (0)