Swift UIDropSession,update";绿色&x2B&引用;系统指示器

Swift UIDropSession,update";绿色&x2B&引用;系统指示器,swift,Swift,我目前正在使用ios11api开发一个简单的拖放应用程序:UIDragInteractionDelegate和UIDropInteractionDelegate 我成功地将drop功能锁定到我的项目中,但是我没有找到任何解决方案来定制drop激活时出现的绿色指示灯。我的应用程序将提供其他形式的指示 我在UIDropSession中注意到变量progressIndicatorStyle,但在更新时没有看到任何更改 func dropInteraction(_ interaction: UIDro

我目前正在使用ios11api开发一个简单的拖放应用程序:
UIDragInteractionDelegate
UIDropInteractionDelegate

我成功地将drop功能锁定到我的项目中,但是我没有找到任何解决方案来定制drop激活时出现的绿色指示灯。我的应用程序将提供其他形式的指示

我在
UIDropSession
中注意到变量progressIndicatorStyle,但在更新时没有看到任何更改

func dropInteraction(_ interaction: UIDropInteraction, canHandle session: UIDropSession) -> Bool {
    session.progressIndicatorStyle = .none
    return session.localDragSession != nil && session.canLoadObjects(ofClass: UIImage.self)
}

有人成功地隐藏了这个指示器吗?

我终于解决了这个问题

该指标由该功能生成:

func dropInteraction(_ interaction: UIDropInteraction, sessionDidUpdate session: UIDropSession) -> UIDropProposal {
    return UIDropProposal(operation: .copy)
}
如果要删除此指示器,只需将参数更改为
.move