Contents

init()

Initializes an instance with default spacing values.

Declaration

init()

Discussion

Use this initializer to create a spacing preferences instance with default values. Then use formUnion(_:edges:) to combine preferences from other views with the new instance. You typically do this in a custom layout’s implementation of the spacing(subviews:cache:) method.

See Also

Creating spacing instances