This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Sequence+Scan.swift | |
// | |
// Created by Daniel Tartaglia on 10/13/2018. | |
// Copyright © 2018 Daniel Tartaglia. MIT License. | |
// | |
extension Sequence { | |
public func scan<Result>(_ initialResult: Result, _ nextPartialResult: (Result, Element) throws -> Result) rethrows -> [Result] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// StallUnless.swift | |
// | |
// Created by Daniel Tartaglia on 1 Oct 2018. | |
// Copyright © 2024 Daniel Tartaglia. MIT License. | |
// | |
import RxSwift | |
extension ObservableType { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ObservableEventTransforms.swift | |
// | |
// Created by Daniel Tartaglia on 9/22/18. | |
// Copyright © 2019 Daniel Tartaglia. MIT License. | |
// | |
import RxSwift | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// EmitWhile.swift | |
// | |
// Created by Daniel Tartaglia on 09/06/2018. | |
// Copyright © 2021 Daniel Tartaglia. MIT License. | |
// | |
import Foundation | |
import RxSwift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Observables.swift | |
// | |
// Created by Daniel Tartaglia on 8/13/18. | |
// Copyright © 2018 Daniel Tartaglia. MIT License. | |
// | |
extension ObservableType { | |
func bind(to observables: Observables<String, E>, withKey key: String) -> Disposable { | |
return observables.insert(key: key, value: self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Filter.swift | |
// | |
// Created by Daniel Tartaglia on 8/25/2018. | |
// Copyright © 2019 Daniel Tartaglia. MIT License. | |
// | |
import RxSwift | |
extension ObservableType { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Daniel Tartaglia on 4/20/17. | |
// Copyright © 2017 Daniel Tartaglia. MIT License. | |
import UIKit | |
import RxSwift | |
import RxCocoa | |
class ViewController: UIViewController { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UITableViewExtensions.swift | |
// | |
// Created by Daniel Tartaglia on 7/21/17. | |
// Copyright © 2017 MIT License. | |
// | |
import UIKit | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UITextViewExtensions.swift | |
// | |
// Created by Daniel Tartaglia on 7/20/17. | |
// Copyright © 2017 Daniel Tartaglia. MIT License. | |
// | |
import UIKit | |
extension UITextField { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DelayScheduler.swift | |
// | |
// Created by Daniel Tartaglia on 4/20/17. | |
// Copyright © 2017 Daniel Tartaglia. MIT License. | |
// | |
final class DelayScheduler: ImmediateSchedulerType { | |
init(delay: TimeInterval, queue: DispatchQueue = .main) { |