kristofk
(Kristof Kocsis)
1
I experienced this in the following method:
override func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) {
print(targetContentOffset.pointee.x)
}
The tutorial that I was following used targetContentOffset.memory.x while I had to use targetContentOffset.pointee.x
Was this a change in Swift of how come that this happened?
jrose
(Jordan Rose)
2
2 Likes
kristofk
(Kristof Kocsis)
3
Oh yeah right, my bad! Thanks for the intel 