Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
olback1173128dI've never written in Swift. Are swift pointers any different from C pointers?
OmerFlame259827d@RememberMe I know, but sometimes when you must use pointers to propagate changes from view controller to view controller it gets stupidly difficult because you have to mess around with UnsafeMutablePointer. If that value is nullable then you must mess around with UnsafeMutableRawPointer. They made it really hard...
Lensflare198914d@OmerFlame wtf? Stop using pointers to propagate changes. You have so many mechanisms to pick from:
Closures, delegation pattern, notification center, Combine.
Heck... you can even use KVO. Still better than abusing pointers.
You know about keypaths, right? I feel like they can be used instead of what you are doing with pointers.