Structs

The following structs are available globally.

  • Specifies how a layout positions itself inside of the rect that it is given to it by its parent during arrangement.

    See more

    Declaration

    Swift

    public struct Alignment
  • An animation for a layout.

    See more

    Declaration

    Swift

    public struct Animation
  • A wrapper around Flexibility that makes it easy to do math relative to an axis.

    See more

    Declaration

    Swift

    public struct AxisFlexibility
  • A wrapper around CGPoint that makes it easy to do math relative to an axis.

    See more

    Declaration

    Swift

    public struct AxisPoint
  • A wrapper around CGSize that makes it easy to do math relative to an axis.

    See more

    Declaration

    Swift

    public struct AxisSize
  • A set of updates to apply to a ReloadableView.

    See more

    Declaration

    Swift

    public struct BatchUpdates
  • Instruction to move an item from one index path to another.

    See more

    Declaration

    Swift

    public struct ItemMove: Equatable
  • Instruction to move a section from one index to another.

    See more

    Declaration

    Swift

    public struct SectionMove: Equatable
  • The flexibility of a layout along both dimensions.

    Flexibility is a hint to a layout’s parent about how the parent should prioritize space allocation among its children when there is either insufficient or too much space.

    A layout MAY use the flexibility of its sublayouts to determine how to allocate its available space between those sublayouts. A layout SHOULD NOT ever need to inspect its own flexiblity.

    A parent layout MAY compress ANY sublayout (even sublayouts that are configured as inflexible) if there is insufficient space. A parent layout MAY expand any flexible sublayout if there is excess space and if the parent layout wants to fill that space. A parent layout SHOULD favor expanding/compressing more flexible sublayouts over less flexible sublayouts. A parent layout SHOULD NOT expand inflexible sublayouts.

    See more

    Declaration

    Swift

    public struct Flexibility
  • The frame of a layout and the frames of its sublayouts.

    See more

    Declaration

    Swift

    public struct LayoutArrangement
  • The size of a layout and the sizes of its sublayouts.

    See more

    Declaration

    Swift

    public struct LayoutMeasurement