Returns a CGSize typecast from an NSSize.


func NSSizeToCGSize(_ nssize: NSSize) -> CGSize

Return Value

A CGSize typecast from an NSSize.

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 NSSizeFromCGSize(CGSize) -> NSSize

Returns an NSSize typecast from a CGSize.