Structure
PageMetadata
Metadata for a given
Page.struct PageMetadata
Topics
Initializers
init(from: any Decoder) throwsCreates a new instance by decoding from the given decoder.init(page: Int, per: Int, total: Int)Creates a newPageMetadatainstance.
Instance Properties
let page: IntCurrent page number. Starts at1.var pageCount: IntComputed total number of pages with1being the minimum.let per: IntMax items per page.let total: IntTotal number of items available.
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.SendableSwift.SendableMetatype