admin管理员组文章数量:1183716
i'm trying to integrate a shortcut into my ios application, but when i launch the shortcut it works fine but in the end my application crashes
static var title: LocalizedStringResource = "Mettre à jour la base de données"
static var description: LocalizedStringResource = "Met à jour la base de données des numéros bloqués"
struct Success: IntentResult {
var value: Never? = nil
static var result: Success { Success(value: nil) }
}
public init() {}
static var openAppWhenRun = true
func perform() async throws -> Success {
await MainActor.run {
let viewModel = BlockedNumbersViewModel.shared
viewModel.forceUpdateFilters()
}
try await Task.sleep(nanoseconds: 5_000_000_000)
return .result
}
} ```
本文标签: swiftIOS application crash when I launch intentStack Overflow
版权声明:本文标题:swift - IOS application crash when I launch intent - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738320333a2074465.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论