An interface that you implement to interact with a drop operation in a view modified to accept drops.
- macOS 10.15+
- Xcode 11.0+
Drop protocol provides a comprehensive and flexible way to interact with a drop operation. Specify a drop delegate when you modify a view to accept drops with the
Alternatively, for simple drop cases that don’t require the full functionality of a drop delegate, you can modify a view to accept drops using the
on or the
on method. These methods handle the drop using a closure you provide as part of the modifier.