The following code worked fine in previous development snapshots but fails in 
the May 9, 2016 snapshot:

        let color = UIColor(red: 0.892, green: 0.609, blue: 0.048,  alpha: 
1.000)

Does anyone know whether this is a bug or if the syntax changed? (Yes, I 
imported UIKit). Xcode gives an error of ‘Ambiguous use of 
init(red:green:blue:alpha:)’


_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to