Re: CGFloat and literal floats in Swift
Re: CGFloat and literal floats in Swift
- Subject: Re: CGFloat and literal floats in Swift
- From: Rick Mann <email@hidden>
- Date: Sun, 26 Jul 2015 16:30:31 -0700
Also weird, I only have to cast the last two arguments, not the second.
> On Jul 26, 2015, at 16:07 , Quincey Morris <email@hidden> wrote:
>
> On Jul 26, 2015, at 15:57 , Rick Mann <email@hidden> wrote:
>>
>> I'm finding it a bit cumbersome to use CGFloat in graphics code in Swift, because the compiler won't let me pass a floating-point literal to a parameter that takes a CGFloat. I have to wrap them all in CGFloat(<val>).
>
> I’m not seeing this. Do you have an example that produces an error in a playground?
>
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden