Closed fwgreen closed 2 years ago
Knowing the page count once you've set the page request comes in handy. My current workaround is a tiny extension:
extension Page { var pageCount: Int { Int((Double(self.metadata.total)/Double(self.metadata.per)).rounded(.up)) } }
Knowing the page count once you've set the page request comes in handy. My current workaround is a tiny extension: