@jomoka
There is no need to override following function targetContentOffset(forProposedContentOffset proposedContentOffset: CGPoint, withScrollingVelocity velocity: CGPoint) -> CGPoint
in BooksLayout.swift
You can simply use collectionView?.isPagingEnabled = true just like you did in in BookLayout.swift
@sandeep007, I donโt have the old version of xcode running the app anymore but if collectionView.isPagingEnabled works the same as the overridden method then itโs not needed. The reason before why targetContentOffset was overriden was to provide fine grain control of how the books snapped into place when the user releases their finger.
Hi, I am an intermediate level iOS developer, this tutorial is very nice and I want to learn how it works, but its giving me a lot of problems, firstly the code isnโt updated to swift3 where a lot of the dispatch statements are reworked where they have removed the dispatch_once statement that is available in the starter project which is also giving me problems in the collection flow layout class. If you could convert the code to swift 3, it will be a lot of help. Thanks.
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]