0

I got this Error in iOS during swift migration

func () {
 var tmpChar : [CChar] = []
tmpChar.extend(Array(repeating: 0, count: 32 - tmpChar.count))//error at this line
}

So my question is what is meaning of this error and How to solve it. Thanks in advance

Sujay
  • 588
  • 6
  • 15
  • since this code doesn't make any sense, might you post the original code? – mugx Dec 12 '17 at 08:23
  • The error message is pretty clear. `Array` does not respond to `extend`. Please read the [documentation](https://developer.apple.com/documentation/swift/array) to find the appropriate API – vadian Dec 12 '17 at 09:00
  • `extend()` is from Swift 1.2. – Martin R Dec 12 '17 at 09:12

0 Answers0