Re: Swift 3: How to Create CFArray of CGColors?

2016-11-23 Thread Charles Jenkins
Thank you, Eric and Quincey! Both Eric’s resource and Quincey’s explanation gave good ideas on how to tackle problems like this in the future, which will probably help with the next stumbling block. Cheers! On Tue, Nov 22, 2016 at 7:36 PM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrot

Re: Swift 3: How to Create CFArray of CGColors?

2016-11-22 Thread Quincey Morris
On Nov 22, 2016, at 16:17 , Charles Jenkins wrote: > > I have this line of code: > > let gradient = CGGradient( colorsSpace: CGColorSpaceCreateDeviceRGB(), > colors: [ clearWhite.cgColor, clearWhite.cgColor, > clearWhite.blendedColorWithFraction(0.5, ofColor: white).cgColor, > white.cgColor ], l

Re: Swift 3: How to Create CFArray of CGColors?

2016-11-22 Thread Eric Dolecki
http://stackoverflow.com/questions/39514375/cggradient-issues-with-swift-3 Get Outlook for iOS _ From: Charles Jenkins Sent: Tuesday, November 22, 2016 7:18 PM Subject: Swift 3: How to Create CFArray of CGColors? To: Cocoa-Dev (Apple) I’m sure this

Swift 3: How to Create CFArray of CGColors?

2016-11-22 Thread Charles Jenkins
I’m sure this will turn out to be elementary, but the Apple documentation of CFArray is so EMPTY that I can’t seem to figure it out. I have this line of code: let gradient = CGGradient( colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: [ clearWhite.cgColor, clearWhite.cgColor, clearWhite.blende