     }
     public weak var dataSource: BmoViewPagerDataSource? {
         didSet {
+            self.parentViewController = (dataSource as? UIViewController)
             pageViewController.bmoDataSource = dataSource
             pageListView.bmoDataSource = dataSource
             self.addPageListIfNeed()

        delegate?.bmoViewPagerDelegate?(self, scrollProgress: progressFraction, index: pageControlIndex)
        pageListView.updateFocusProgress(&progressFraction)
    }
}

    @objc optional func bmoViewPagerDelegate(_ viewPager: BmoViewPager, scrollProgress fraction: CGFloat, index: Int)
    @objc optional func bmoViewPagerDelegate(_ viewPager: BmoViewPager, didAppear viewController: UIViewController, page: Int)
}

@IBDesignable
public class BmoViewPager: UIView, BmoPageItemListDelegate, UIScrollViewDelegate {
    @IBInspectable var isHorizontal: Bool = true
    
