Returns an NSSize typecast from a CGSize.


func NSSizeFromCGSize(_ cgsize: CGSize) -> NSSize

Return Value

An NSSize typecast from a CGSize.

See Also

Managing Sizes

func NSEqualSizes(NSSize, NSSize) -> Bool

Returns a Boolean that indicates whether two size values are equal.

func NSMakeSize(CGFloat, CGFloat) -> NSSize

Returns a new NSSize from the specified values.

func NSSizeFromString(String) -> NSSize

Returns an NSSize from a text-based representation.

func NSStringFromSize(NSSize) -> String

Returns a string representation of a size.

func NSSizeToCGSize(NSSize) -> CGSize

Returns a CGSize typecast from an NSSize.