Skip to content

Instantly share code, notes, and snippets.

@markvanwijnen
Last active March 8, 2021 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markvanwijnen/27f3bd8342dbda5947829d6e5ae65b89 to your computer and use it in GitHub Desktop.
Save markvanwijnen/27f3bd8342dbda5947829d6e5ae65b89 to your computer and use it in GitHub Desktop.
import SwiftUI
import Combine // 1
class TwitterAPI: NSObject, ObservableObject {
struct ClientCredentials { /*(...)*/ }
lazy var onOAuthRedirect = PassthroughSubject<URL, Never>() // 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment