(no title)
wolfsir | 10 years ago
CGFloat, depending on the runtime, may either be a Float or a Double, so explicitly converting to and from it is required.
Rather than create a byzantine set of rules about whether it is "safe" to convert from one type to another, Swift wisely requires that all type conversions be explicit.
No comments yet.