admin管理员组文章数量:1289362
As Apple introduce the move(fromOffsets:toOffset:)
method in their document
I opened a new XcodePlayground and have this variable.
var letters = Array("ABcDefgHIJKlmNO")
However, the move(fromOffsets:toOffset:)
seems unavailable to the letters
variable.
I thought it might be a type inference issue, so I declared another variable.
var test: [Int] = [1,2,3,4,5]
But still unable to call the move
method, have I done something wrong?
As Apple introduce the move(fromOffsets:toOffset:)
method in their document
I opened a new XcodePlayground and have this variable.
var letters = Array("ABcDefgHIJKlmNO")
However, the move(fromOffsets:toOffset:)
seems unavailable to the letters
variable.
I thought it might be a type inference issue, so I declared another variable.
var test: [Int] = [1,2,3,4,5]
But still unable to call the move
method, have I done something wrong?
1 Answer
Reset to default 1Based on @HangarRash's comment, you can import the UIKit or SwiftUI to call the move(fromOffsets:toOffset:)
method.
I have submitted a feedback for this odd issue: FB16530359.
本文标签: The Swift Move Array method is unavailable in Xcode playgroundStack Overflow
版权声明:本文标题:The Swift Move Array method is unavailable in Xcode playground - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741461590a2380069.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论