微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

UIActivityViewController是否可以与SwiftUI一起正常使用-似乎确实有问题

如何解决UIActivityViewController是否可以与SwiftUI一起正常使用-似乎确实有问题

我真的很想让UIActivityViewController像SwiftUI中的UIViewControllerRepresentable一样工作。例如,当尝试共享给WhatsApp时,屏幕只是略微移动,好像要执行某些操作一样,然后返回到原来的位置,并出现以下一系列错误(为便于阅读,删除了一些时间戳等):>

[core] HOST: Failed to load remote view controller with error: 
Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 2539 named
net.whatsapp.WhatsApp.ShareExtension.viewservice was interrupted,but the message was
sent over an additional proxy and therefore this proxy has become invalid."
[core] Sheet not being presented,calling premature completion
[net.whatsapp.WhatsApp.ShareExtension(2.20.111)] Connection to plugin interrupted while in use.
[net.whatsapp.WhatsApp.ShareExtension(2.20.111)] Connection to plugin invalidated while in use.

这仅仅是与使用SwiftUI时模态的(看似令人难以置信的错误)行为有关吗?我似乎无法解决这个持续存在的问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。