Contents

combineExplicit(_:)

Merges a sequence of explicit alignment values produced by this instance.

Declaration

func combineExplicit<S>(_ values: S) -> CGFloat? where S : Sequence, S.Element == CGFloat?

Discussion

For most alignment types, this method returns the mean of all non-nil values. However, some types use other rules. For example, firstTextBaseline returns the minimum value, while lastTextBaseline returns the maximum value.

See Also

Creating a custom alignment