         setupToolbar()
         setupSlideImage()
         
-        slidingDetailView = SlidingSideView(slidingDetailAnchor ,withNormalHeight: 100.0, expandedHeight: 200.0)
-        slidingDetailView.backgroundColor = UIColor.clear
-        slidingDetailView.delegate = self
+        slidingSideView = SlidingSideView(slidingDetailAnchor ,withNormalHeight: 100.0, expandedHeight: 200.0)
+        slidingSideView.backgroundColor = UIColor.clear
+        slidingSideView.delegate = self
         
         //set layoutguides before adding as a subview
-        slidingDetailView.topLayouyGuide = self.topLayoutGuide
-        slidingDetailView.bottomLayoutGuide = self.bottomLayoutGuide
+        slidingSideView.topLayouyGuide = self.topLayoutGuide
+        slidingSideView.bottomLayoutGuide = self.bottomLayoutGuide
         
-        self.view.addSubview(slidingDetailView)
+        self.view.addSubview(slidingSideView)
         
         let contentView = UIView()
         contentView.backgroundColor = UIColor(red: 0.0, green: 129.0/255.0, blue: 213.0/255.0, alpha: 1.0)


class DemoViewController: UIViewController {

    var slidingDetailView: SlidingSideView!
    var slidingDetailAnchor: SlidingSideViewAnchor!
    var label: UILabel!
    


extension DemoViewController: SlidingSideViewDelegate {
    
    public func slidingSideView(_ sdView: SlidingSideView, willSlideToState state: SlidingSideViewState) {
        print("Will slide")
    }
    
    func slidingSideView(_ sdView: SlidingSideView, didSlideToState state: SlidingSideViewState) {
        print("Did slide")
    }
}
