Pagination

public struct Pagination : Codable

A codable struct containing the pagination information

Usage Example:

To get only the first 10 values, we would write:

Pagination(size: 10)

To get the 11th to 20th values, we would write:

Pagination(start: 10, size: 10)
  • Creates a Pagination instance from start and size Int values

    Declaration

    Swift

    public init(start: Int = 0, size: Int)
  • Returns a tuple containing the start and size Int values

    Declaration

    Swift

    public func getValues() -> (start: Int, size: Int)