Skip to content

Commit 3a13974

Browse files
committed
better assertions
1 parent f69dccf commit 3a13974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Swifty360Player/Swifty360ViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ open class Swifty360ViewController: UIViewController, Swifty360CameraControllerD
106106
override open func viewDidLoad() {
107107
super.viewDidLoad()
108108

109-
assert(player == nil, "Swifty360ViewController should have an AVPlayer instance")
110-
assert(motionManager == nil, "Swifty360ViewController should have an Swifty360MotionManager instance")
109+
assert(player != nil, "Swifty360ViewController should have an AVPlayer instance")
110+
assert(motionManager != nil, "Swifty360ViewController should have an Swifty360MotionManager instance")
111111

112112
setup(player: player, motionManager: motionManager)
113113

0 commit comments

Comments
 (0)