Skip to content

Commit

Permalink
Merge pull request #19 from tomokitakahashi/master
Browse files Browse the repository at this point in the history
  • Loading branch information
tomosaaan authored and freak4pc committed Apr 13, 2018
1 parent 2c630e6 commit b499e2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Example/Example for RxAnimated AppleTV/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ class ViewController: UIViewController {

// disable animations manually
DispatchQueue.main.asyncAfter(deadline: .now() + 10.0, execute: {
RxAnimated.areAnimationsEnabled.value = false
RxAnimated.areAnimationsEnabled.accept(false)
})
DispatchQueue.main.asyncAfter(deadline: .now() + 15.0, execute: {
RxAnimated.areAnimationsEnabled.value = true
RxAnimated.areAnimationsEnabled.accept(true)
})
}

Expand Down
4 changes: 2 additions & 2 deletions Example/RxAnimated/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ class ViewController: UIViewController {

// disable animations manually
DispatchQueue.main.asyncAfter(deadline: .now() + 10.0, execute: {
RxAnimated.areAnimationsEnabled.value = false
RxAnimated.areAnimationsEnabled.accept(false)
})
DispatchQueue.main.asyncAfter(deadline: .now() + 15.0, execute: {
RxAnimated.areAnimationsEnabled.value = true
RxAnimated.areAnimationsEnabled.accept(true)
})
}
}
2 changes: 1 addition & 1 deletion RxAnimated/Core/RxAnimated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import RxSwift
import RxCocoa

public struct RxAnimated {
public static let areAnimationsEnabled = Variable(true)
public static let areAnimationsEnabled = BehaviorRelay(value: true)
fileprivate static var areDefaultHeuristicsEnabled = false
public static func enableDefaultPerformanceHeuristics() {
areDefaultHeuristicsEnabled = true
Expand Down

0 comments on commit b499e2b

Please sign in to comment.