 
     public var options: SwipeMenuViewOptions
 
-    fileprivate var isOrientationChange: Bool = false
+    fileprivate var isLayoutingSubviews: Bool = false
 
     fileprivate var pageCount: Int {
         return dataSource?.numberOfPages(in: self) ?? 0


    private func reset() {

        if !isOrientationChange {
            currentIndex = 0
        }


    }

    open override func layoutSubviews() {

        isLayoutingSubviews = true
        super.layoutSubviews()

        reloadData(isOrientationChange: true)
