Protocol

NSUserInterfaceCompression

A protocol that describes how a UI control should redisplay when space is restricted.

Declaration

protocol NSUserInterfaceCompression

Overview

A control that adopts this protocol has the ability to resize itself when space is at a premium.

Topics

Compressing the UI

func compress(withPrioritizedCompressionOptions: [NSUserInterfaceCompressionOptions])

Compress the view by applying the specified compression options.

Required.

Querying Compression Status

func minimumSize(withPrioritizedCompressionOptions: [NSUserInterfaceCompressionOptions]) -> NSSize

Returns the minimum size a view can achieve by applying the supplied compression options.

Required.

var activeCompressionOptions: NSUserInterfaceCompressionOptions

The compression options that are currently applied to the view.

Required.

Relationships

Conforming Types

See Also

View Layout

class NSLayoutConstraint

The relationship between two user interface objects that must be satisfied by the constraint-based layout system.

class NSLayoutGuide

A rectangular area that can interact with Auto Layout.

class NSLayoutDimension

A factory class for creating size-based layout constraint objects using a fluent API.

class NSLayoutAnchor

A factory class for creating layout constraint objects using a fluent API.

class NSLayoutXAxisAnchor

A factory class for creating horizontal layout constraint objects using a fluent API.

class NSLayoutYAxisAnchor

A factory class for creating vertical layout constraint objects using a fluent API.