We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e258bc4 + 11246be commit 7f4cd11Copy full SHA for 7f4cd11
stdlib/public/Darwin/CoreGraphics/CGFloat.swift.gyb
@@ -61,9 +61,13 @@ public struct CGFloat {
61
}
62
63
extension CGFloat : SignedNumeric {
64
+ @_alwaysEmitIntoClient // availability
65
+ public init<T: BinaryInteger>(_ source: T) {
66
+ self.native = NativeType(source)
67
+ }
68
69
@_transparent
- public init?<T : BinaryInteger>(exactly source: T) {
70
+ public init?<T: BinaryInteger>(exactly source: T) {
71
guard let native = NativeType(exactly: source) else { return nil }
72
self.native = native
73
@@ -72,7 +76,6 @@ extension CGFloat : SignedNumeric {
76
public var magnitude: CGFloat {
77
return CGFloat(native.magnitude)
74
78
75
-
79
80
81
extension CGFloat : BinaryFloatingPoint {
0 commit comments