Closed gabriellet closed 7 years ago
@gabriellet, If you're using swift 3 the compiler automatically simplified the addResponseObserver and removeResponseObserver methods to just add(observer: RKResponseObserver!) and remove(observer: RKResponseObserver!). As long as you implement the RKResponseObserver protocol you should just need to call robot.add(self).
edit: Also the RKResponseObserver methods have been simplified handleResponse becomes func handle(_ response: RKDeviceResponse!, forRobot robot: RKRobotBase!)
Thank you so much! This works!
Hi, is there more guidance on how to correctly implement a response observer for Sphero in Swift? I'm having a difficult time doing this correctly and have already looked at the docs to no avail.