SnapEdges

public enum SnapEdges

Edge snapping cases which describe combinations regarding the position of a view into another view.

  • all

    Snap to top, right, bottom, left sides.

    Declaration

    Swift

    case all
  • Snap to top, right and bottom. Width should be provided.

    Declaration

    Swift

    case topRightBottom
  • Snap to top right and left edges. Height should be provided.

    Declaration

    Swift

    case topRightLeft
  • Snap to top, left and bottom. Width should be provided.

    Declaration

    Swift

    case topLeftBottom
  • Snap to bottom, right and left. Height should be provided.

    Declaration

    Swift

    case bottomRightLeft
  • Snap to top left edges. Width and Height should be provided.

    Declaration

    Swift

    case topLeft
  • Snap to top right edges. Width and Height should be provided.

    Declaration

    Swift

    case topRight
  • Snap to bottom left edges. Width and Height should be provided.

    Declaration

    Swift

    case bottomLeft
  • Snap to bottom right edges. Width and Height should be provided.

    Declaration

    Swift

    case bottomRight
  • Snap to top and bottom, and center horizontally. Width should be provided.

    Declaration

    Swift

    case topBottomCenterX
  • Snap to top and center horizontally. Width and Height should be provided.

    Declaration

    Swift

    case topCenterX
  • Snap to bottom and center horizontally. Width and Height should be provided.

    Declaration

    Swift

    case bottomCenterX
  • Snap to left and right and center vertically. Height should be provided.

    Declaration

    Swift

    case leftRightCenterY
  • Snap to left and center vertically. Width and Height should be provided.

    Declaration

    Swift

    case leftCenterY
  • Snap to right and center vertically. Width and Height should be provided.

    Declaration

    Swift

    case rightCenterY
  • Center the view both horizontally and vertically into its container view. Width and Height should be provided for a complete set of constraints.

    Declaration

    Swift

    case centerX_Y