             }
         }
     }
-    
-    private func setChapterInfo() {
+ 
+    fileprivate func setChapterInfo() {
         let currentIndex = AppUtility.getCurrentPage(bookId: bookInfo.bookId)
+        
+        print("current index = \(currentIndex)")
         
         var chapterNumber : Int!
         for chapterInfo in chapterInfos {

            return
        }
        
        settingView.preBtn.isEnabled = chapterNumber != 0
        settingView.nextBtn.isEnabled = chapterNumber != chapterInfos.count - 1
    }

    }
    
    private func setView() {
        for i in 0..<pageContents.count {
            let content = pageContents[i]
//        for content in pageContents {
            let storyboard = UIStoryboard(name: "Page", bundle: nil)
            guard let controller = storyboard.instantiateInitialViewController() as? PageController else {
                continue
            }
            
            controller.content = content
            controller.view.tag = i
            self.controllers.append(controller)
        }
        
