Skip to content

Instantly share code, notes, and snippets.

View danielt1263's full-sized avatar

Daniel Tartaglia danielt1263

View GitHub Profile
//: A UIKit based Playground for presenting user interface
import UIKit
import RxSwift
import RxCocoa
import PlaygroundSupport
import Cause_Logic_Effect
PlaygroundPage.current.liveView = CounterViewController().configure { $0.connect() }
//
// TestScheduler+MarbleTests.swift
//
// Created by Daniel Tartaglia on 31 October 2021.
// Copyright © 2022 Daniel Tartaglia. MIT License.
//
import Foundation
import RxSwift
import RxTest
//
// PublisherResultTransforms.swift
// rx-sandbox
//
// Created by Daniel Tartaglia on 9/19/21.
//
import Combine
/**
//
// UIPageController+Rx.swift
//
// Created by Daniel Tartaglia on 7/11/21.
// Copyright © 2021 Daniel Tartaglia. MIT License.
//
import RxCocoa
import RxSwift
import UIKit
//
// WithNextFrom.swift
//
// Created by Daniel Tartaglia on 7/07/21.
// Copyright © 2021 Daniel Tartaglia. MIT License.
//
import RxSwift
extension ObservableType {
/// Emit the next element from the second Observable immediatly after an element from the source Observable emits. The most recent from the source and the next event from the second observable will be passed to the resultSelector for processing.
//
// Presenter.swift
//
// Created by Daniel Tartaglia on 8/24/20.
// Copyright © 2020 Daniel Tartaglia. MIT License.
//
import UIKit
import RxSwift
@danielt1263
danielt1263 / ErrorRouter.swift
Created August 13, 2020 00:08
Gather up errors into a single Observable<Error>
//
// ErrorRouter.swift
//
// Created by Daniel Tartaglia on 5/23/20.
// Copyright © 2020 Daniel Tartaglia. MIT License.
//
import Foundation
import RxCocoa
import RxSwift
@danielt1263
danielt1263 / TokenAcquisitionService.swift
Last active June 20, 2021 13:41
Token Acquisition Service for Combine
//
// TokenAcquisitionService.swift
// CombineSandbox
//
// Created by Daniel Tartaglia on 11/27/19.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import Foundation
import Combine
final class ViewController: UIViewController {
@IBOutlet weak var bottomConstraint: NSLayoutConstraint!
private let disposeBag = DisposeBag()
override func viewDidLoad() {
super.viewDidLoad()
// avoid keyboard.
@danielt1263
danielt1263 / RetryWhen.swift
Last active April 25, 2023 09:40
I have implemented RetryWhen in Combine.
//
// RetryWhen.swift
// CombineSandbox
//
// Created by Daniel Tartaglia on 9/27/19.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import Foundation
import Combine