Instance Property

preferredPrimaryColumnWidthFraction

The relative width of the primary view controller’s content.

Declaration

var preferredPrimaryColumnWidthFraction: CGFloat { get set }

Discussion

Use this property to specify your preferred width for the primary view controller’s view. The value of this property is a floating-point number between 0.0 and 1.0 that represents the percentage of the overall width of the split view controller. For example, the value 0.4 represents 40% of the current width. The default value of this property is automaticDimension, which results in an appropriate width for the primary view controller.

The actual width of the primary view controller is constrained by the values in the minimumPrimaryColumnWidth and maximumPrimaryColumnWidth properties. The split view controller makes every other attempt to honor the width you specify but may change this value to accommodate the available space. You can get the actual width assigned to the primary view controller’s view from the primaryColumnWidth property.

See Also

Getting the Split View Configuration

var isCollapsed: Bool

A Boolean value indicating whether only one of the child view controllers is displayed.

var primaryColumnWidth: CGFloat

The width (in points) of the primary view controller’s content.

var minimumPrimaryColumnWidth: CGFloat

The minimum width (in points) required for the primary view controller’s content.

var maximumPrimaryColumnWidth: CGFloat

The maximum width (in points) allowed for the primary view controller’s content.