Skip to content

Commit

Permalink
chore(merge): merge #220 into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sbertix authored May 22, 2021
2 parents 86b032b + f01680f commit b709399
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Examples/Authenticator/Authenticator/LoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import WebKit
import Swiftagram

/// A `class` defining a view controller capable of displaying the authentication web view.
private class LoginViewController: UIViewController {
internal class LoginViewController: UIViewController {
/// The completion handler.
var completion: ((Secret) -> Void)? {
didSet {
Expand Down
2 changes: 1 addition & 1 deletion Examples/Followers/Followers/LoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Swiftagram
import SwiftagramCrypto

/// A `class` defining a view controller capable of displaying the authentication web view.
private class LoginViewController: UIViewController {
internal class LoginViewController: UIViewController {
/// The completion handler.
var completion: ((Secret) -> Void)? {
didSet {
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let package = Package(
.library(name: "SwiftagramCrypto",
targets: ["SwiftagramCrypto"])],
// Package dependencies.
dependencies: [.package(url: "https://github.com/sbertix/ComposableRequest", .upToNextMinor(from: "5.1.0")),
dependencies: [.package(url: "https://github.com/sbertix/ComposableRequest", .upToNextMinor(from: "5.2.1")),
.package(url: "https://github.com/sbertix/SwCrypt.git", .upToNextMinor(from: "5.1.0"))],
// All targets.
targets: [.target(name: "Swiftagram",
Expand Down
2 changes: 1 addition & 1 deletion Sources/Swiftagram/Endpoints/Recent/Endpoint+Recent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public extension Endpoint.Group.Recent {
// Persist the rank token.
let rank = pages.rank ?? UUID().uuidString
// Prepare the actual pager.
return Pager(pages.count, offset: pages.offset.offset) {
return Pager(pages.count, offset: pages.offset.offset, delay: pages.delay) {
Request.feed
.path(appending: "timeline/")
.header(appending: secret.header)
Expand Down
1 change: 1 addition & 0 deletions Tests/SwiftagramTests/EndpointTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import AppKit
@testable import Swiftagram
@testable import SwiftagramCrypto

import ComposableRequest
import SwCrypt

/// The default delay.
Expand Down
9 changes: 6 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,12 @@ Endpoint.user(secret.identifier)
.posts
.unlock(with: secret)
.session(.instagram)
.pages(.max) // Exhaust all with `.max`
// or pass any `Int` to limit
// pages.
.pages(.max, delay: 1) // Exhaust all with `.max`
// or pass any `Int` to limit
// pages.
// You can omit `delay`, in that
// case pages will be fetched
// one immediately after the other.
.sink(receiveCompletion: { _ in }, receiveValue: { print($0) })
.store(in: &bin)
```
Expand Down

0 comments on commit b709399

Please sign in to comment.