Skip to content

Commit

Permalink
fixed isMotionEnabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dahan committed Dec 29, 2017
1 parent e0089ce commit 1b847fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Extensions/Motion+UIViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ extension UIViewController {
@IBInspectable
public var isMotionEnabled: Bool {
get {
return transitioningDelegate is Motion
return transitioningDelegate is MotionTransition
}

set(value) {
guard value != isMotionEnabled else {
return
Expand Down

0 comments on commit 1b847fe

Please sign in to comment.