Color parsing in Swift : I have a data from server in a format like "rgb(0,0,0)", which should be used on some UI elements.

Is there a way to parse it in something like UIColor(red: 0, green: 0, blue: 0, alpha: 1)? 