Center

public struct Center : OptionSet

Center alignment options

  • corresponding raw value

    Declaration

    Swift

    public let rawValue: UInt
  • x

    center X

    Declaration

    Swift

    public static let x: UIView.Center
  • y

    center Y

    Declaration

    Swift

    public static let y: UIView.Center
  • all

    all (both center X and center Y)

    Declaration

    Swift

    public static let all: Center
  • Creates the new Center option set from the given raw value.

    Declaration

    Swift

    public init(rawValue: UInt)

    Parameters

    rawValue

    the raw value of Center option set to create