Converted raven-objc to swift