Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Tartaglia danielt1263

  • Haneke Design
  • Tampa, FL
View GitHub Profile
View Presenter.swift
//
// 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 Aug 13, 2020
Gather up errors into a single Observable<Error>
View ErrorRouter.swift
//
// 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 Nov 27, 2019
Token Acquisition Service for Combine
View TokenAcquisitionService.swift
//
// TokenAcquisitionService.swift
// CombineSandbox
//
// Created by Daniel Tartaglia on 11/27/19.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import Foundation
import Combine
View RxKeyboardController.swift
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 Jan 28, 2021
I have implemented RetryWhen in Combine.
View RetryWhen.swift
//
// RetryWhen.swift
// CombineSandbox
//
// Created by Daniel Tartaglia on 9/27/19.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import Foundation
import Combine
View SKProductsRequest+Rx.swift
//
// SKProductsRequest+Rx.swift
//
// Created by Daniel Tartaglia on 8/28/19.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import RxSwift
import RxCocoa
import StoreKit
@danielt1263
danielt1263 / ClearingDebounceTests.swift
Created Aug 22, 2019
Works like `debounce` except if an empty string is pushed in, it will emit immediately.
View ClearingDebounceTests.swift
class Tests: XCTestCase {
var scheduler: TestScheduler!
var result: TestableObserver<String>!
var disposeBag: DisposeBag!
override func setUp() {
super.setUp()
scheduler = TestScheduler(initialClock: 0, resolution: 0.1)
result = scheduler.createObserver(String.self)
View ObservableResultTransforms.swift
//
// ObservableResultTransforms.swift
//
// Created by Daniel Tartaglia on 5/10/2019.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import RxSwift
/**
@danielt1263
danielt1263 / Coordinator.swift
Created Mar 30, 2019
A simplified RxFlow system
View Coordinator.swift
//
// Coordinator.swift
// RxFlow
//
// Created by Daniel Tartaglia on 2/13/19.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import Foundation
import RxSwift
View SKPhysicsWorld+Rx.swift
//
// SKPhysicsWorld+Rx.swift
//
// Created by Daniel Tartaglia on 21 Jan 2019.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import RxSwift
import SpriteKit