The error message you're seeing suggests that you're trying to pass a String value as an argument to a function that expects a closure with the type (Any) throws -> Bool.

To fix this issue, you'll need to make sure that you're passing the correct argument to the function. If the function expects a closure, you'll need to define a closure that takes an Any argument and returns a Bool value. If the function expects a String argument, you'll need to pass a String value.

If you provide more context or code, I can help you further to resolve the issue

contains 提示 Cannot convert value of type String to expected argument type Any throws - Bool

原文地址: http://www.cveoy.top/t/topic/iY9r 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录