Newer version required Swift 5
installing the pod from the repo, first build always ask few changes to newer version
Files
PDFPageView
Line 90 & 107 to
contentView.sendSubviewToBack(backgroundImageView)
decelerationRate = UIScrollView.DecelerationRate.fast
Similarly
PDFViewController
Line 119
public var scrollDirection: UICollectionView.ScrollDirection = .horizontal {
Please review and update the following line of code for newer versions of swift lang,
FROM:
90 contentView.sendSubview(toBack: backgroundImageView)
TO:
90 contentView.sendSubviewToBack(backgroundImageView)
Error: 'sendSubview(toBack:)' has been renamed to 'sendSubviewToBack(_:)'
FROM:
107. decelerationRate = UIScrollViewDecelerationRateFast
TO:
107. decelerationRate = UIScrollView.DecelerationRate.fast
Error : 'UIScrollViewDecelerationRateFast' has been renamed to 'UIScrollView.DecelerationRate.fast'
FROM:
119. public var scrollDirection: UICollectionViewScrollDirection = .horizontal {
TO:
119. public var scrollDirection: UICollectionView.ScrollDirection = .horizontal {
Error: 'UICollectionViewScrollDirection' has been renamed to 'UICollectionView.ScrollDirection'
bitrise is not building thew build
yes please