I wrote an extension to return a UIColor from a hexadecimal string. Although it works, I don't quite understand the purpose of this piece of code
var rgbValue: UInt32 = 0
Scanner(string: cleanHexStr).scanHexInt32(&rgbValue)
Could you provide some insight/detailed understanding for this? Thank you.