I am using a CGColor lightbluecolor and now I want to use the exact color as background of a uiButton. How can I achieve this?
Get the UIColor from the CGColor using UIColor(cgColor: ...):
let uiColor = UIColor(cgColor: cgColor)
then assign it as a background color to your button.