Overview
Your original code works fine both on iOS and macOS
Please test on latest Xcode beta
Code change
One small code change (API has changed) for the latest Xcode beta:
.dropDestination(for: String.self) { (strings: [String], location) in
Tested on
macOS 13.0 Beta (22A5311f)
Xcode Version 14.0 beta 4 (14A5284g)
Topic:
Privacy & Security
SubTopic:
General
Tags: