Get the UIColor from the CGColor using UIColor(cgColor: …):
let uiColor = UIColor(cgColor: cgColor)
then assign it as a background color to your button.
Get the UIColor from the CGColor using UIColor(cgColor: …):
let uiColor = UIColor(cgColor: cgColor)
then assign it as a background color to your button.