                 pageView.widthAnchor.constraint(equalTo: self.widthAnchor),
                 pageView.heightAnchor.constraint(equalTo: self.heightAnchor),
                 pageView.leadingAnchor.constraint(equalTo: pageViews[i - 1].trailingAnchor)
-                ])
+            ])
         }
     }
 }


    private func setupPages() {
        pageViews = []
        loadViewIfNeeded()
    }

    private func loadViewIfNeeded() {

        guard let dataSource = dataSource else { return }
        if dataSource.numberOfPages(in: self) < 0 { return }

        self.contentSize = CGSize(width: frame.width * CGFloat(dataSource.numberOfPages(in: self)), height: frame.height)


                pageView.widthAnchor.constraint(equalTo: self.widthAnchor),
                pageView.heightAnchor.constraint(equalTo: self.heightAnchor),
                pageView.leadingAnchor.constraint(equalTo: leadingAnchor)
            ])
        }

        guard currentIndex < dataSource.numberOfPages(in: self) else { return }
