Initializer

init(dictionaryRepresentation:)

Creates a size from a canonical dictionary representation.

Declaration

init?(dictionaryRepresentation dict: CFDictionary)

Parameters

dict

A dictionary containing width and height values for the size to create, in the format used by the dictionaryRepresentation property.

Return Value

A size structure containing the width and height values specified in the dictionary, or nil if a size value cannot be found in the dictionary.

See Also

Alternate Representations

var dictionaryRepresentation: CFDictionary

Returns a dictionary representation of the specified size.

var debugDescription: String

A textual representation of the size’s dimensions.

var customMirror: Mirror

A representation of the size’s structure and display style for use in debugging.

var customPlaygroundQuickLook: PlaygroundQuickLook

A representation of the size for use in Playgrounds.

Deprecated