We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nextMarker
1 parent ffff13c commit 49c17deCopy full SHA for 49c17de
Sources/Network/PagingIterator.swift
@@ -94,7 +94,9 @@ public class PagingIterator<Element: BoxModel> {
94
nextPage = .streamPosition(nextStreamPosition)
95
}
96
// Handle marker based paging
97
- else if let nextPageMarker = page.nextMarker {
+ // An Empty string, like a nil `nextMarker`, indicates the end has been reached.
98
+ // ref: https://developer.box.com/guides/api-calls/pagination/marker-based/
99
+ else if let nextPageMarker = page.nextMarker, !nextPageMarker.isEmpty {
100
nextPage = .marker(nextPageMarker)
101
102
// Handle unexpected value with no paging information
0 commit comments