Contents

style

An optional dictionary containing additional style values that are not explicitly defined by the receiver.

Declaration

var style: [AnyHashable : Any]? { get set }

Discussion

This dictionary may in turn have a style key, forming a hierarchy of default values. In the case of hierarchical style dictionaries the shallowest value for a property is used. For example, the value for “style.someValue” takes precedence over “style.style.someValue”.

If the style dictionary doesn’t define a value for an attribute, the cell’s defaultValue(forKey:) class method is called.

The style dictionary is not consulted for the following keys: bounds, frame.

The default value of this property is nil.

See Also

Setting Emitter Cell Visual Attributes