CGRect

extension CGRect
  • Returns a CGRect value initialized with an origin at (0,0) and the provided width and height

    Declaration

    Swift

    public init(width: CGFloat, height: CGFloat)

    Parameters

    width

    The width

    height

    The height

    Return Value

    A CGRect value initialized with an origin at (0,0) and the provided width and height