CGFloat
public extension CGFloat
-
Returns string representation rounded to tenth
Declaration
Swift
var asCeilString: String { get } -
Returns string representation rounded to tenth
Declaration
Swift
var asTenthString: String { get } -
Returns string representation rounded to hundredth
Declaration
Swift
var asHundredthString: String { get } -
Returns string representation rounded to thousands
Declaration
Swift
var asThousandsString: String { get } -
Returns
selfasStringDeclaration
Swift
var asString: String { get }
-
Returns
selfasIntif possibleDeclaration
Swift
var asInt: Int? { get } -
Returns
selfasDoubleDeclaration
Swift
var asDouble: Double { get }
-
Returns
trueifselfis ceil. Returnsfalseotherwise.Declaration
Swift
var isCeil: Bool { get }
-
Checks whether two
CGFloatvalues corresponds to the same pixel.Declaration
Swift
static func .== (lhs: CGFloat, rhs: CGFloat) -> Bool -
Checks whether two
CGFloatvalues doesn’t correspond to the same pixel.Declaration
Swift
static func .!= (lhs: CGFloat, rhs: CGFloat) -> Bool -
Checks whether two
CGFloatvalues doesn’t correspond to the same pixel and the left one is smaller.Declaration
Swift
static func .< (lhs: CGFloat, rhs: CGFloat) -> Bool -
Checks whether two
CGFloatvalues doesn’t correspond to the same pixel and the left one is bigger.Declaration
Swift
static func .> (lhs: CGFloat, rhs: CGFloat) -> Bool -
Checks whether two
CGFloatvalues corresponds to the same pixel or the left one is smaller.Declaration
Swift
static func .<= (lhs: CGFloat, rhs: CGFloat) -> Bool -
Checks whether two
CGFloatvalues corresponds to the same pixel or the left one is bigger.Declaration
Swift
static func .>= (lhs: CGFloat, rhs: CGFloat) -> Bool -
Returns value raunded to a nearest pixel
Declaration
Swift
var roundedToPixel: CGFloat { get } -
Returns value raunded to a nearest up pixel
Declaration
Swift
var roundedUpToPixel: CGFloat { get }
CGFloat Extension Reference