The withUnsafePointerToElements()
method was removed, now you can use the withUnsafeBufferPointer()
instead, and use the baseAddress
method in the block to achieve the point
let array: Array = [10.0, 50.0, 40.0]
array.withUnsafeBufferPointer { (cArray: UnsafePointer) -> () in
cArray.baseAddress
}