diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 485a2ba5..ae2eef38 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -4,7 +4,7 @@ on: [pull_request] jobs: test: - runs-on: macos-12 + runs-on: macos-14 env: ALGOLIA_APPLICATION_ID_1: ${{ secrets.ALGOLIA_APPLICATION_ID_1 }} ALGOLIA_ADMIN_KEY_1: ${{ secrets.ALGOLIA_ADMIN_KEY_1 }} @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Select Xcode version - run: sudo xcode-select -s '/Applications/Xcode_14.2.app/Contents/Developer' + run: sudo xcode-select -s '/Applications/Xcode_16.0.app/Contents/Developer' - name: Build project run: swift build - name: Run tests diff --git a/Sources/InstantSearchCore/Pagination/PageMap.swift b/Sources/InstantSearchCore/Pagination/PageMap.swift index c6f4914c..097321b6 100644 --- a/Sources/InstantSearchCore/Pagination/PageMap.swift +++ b/Sources/InstantSearchCore/Pagination/PageMap.swift @@ -81,11 +81,11 @@ struct PageMap { // MARK: SequenceType -// extension PageMap: Sequence { -// public func makeIterator() -> IndexingIterator { -// return IndexingIterator(_elements: self) -// } -// } +extension PageMap: Sequence { + public func makeIterator() -> IndexingIterator { + return IndexingIterator(_elements: self) + } +} // MARK: CollectionType