我试图像Swift13中的iOS13中的Safari一样重新创建Modal:
看起来是这样的:
有谁知道这在SwiftUI中是否可行?我想显示一个小半模态,可以选择拖动到全屏模式,就像共享表一样。
任何建议深表感谢!
当我运行下面的代码时,控制台会输出很多奇怪的错误。如果您阅读它们,您会注意到它们都提到了一些“数据库”和“检索缩略图”。我猜它与我尝试共享的非普通类型文档(Excel 工作表)有某种联系。有什么提示我如何避免这种混乱或解决问题吗?
\n控制台输出:
\n2021-12-11 02:01:40.253894+0300 dia[964:95878] [Fetching] LPFileMetadataProviderSpecialization failed to retrieve a thumbnail from QuickLookThumbnailing (Error Domain=QLThumbnailErrorDomain Code=0 "Could not generate a thumbnail")\n2021-12-11 02:01:40.267006+0300 dia[964:95858] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}\n2021-12-11 02:01:40.267062+0300 dia[964:95858] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.\n2021-12-11 02:01:40.267105+0300 dia[964:95858] [db] Failed to initialize client context with error Error …Run Code Online (Sandbox Code Playgroud)