uiscrollview - Pinch to zoom for entire UICollectionView -


i want entire uicollectionview zoomable including items in it.

i tried delegate method func viewforzooming(in scrollview: uiscrollview) -> uiview? uicollectionview falls under uiscrollview hierarchy. unfortunately, method doesn't triggered collectionview.

then tried putting collection view inside uiscrollview ---> contentview(uiview).

func viewforzooming(in scrollview: uiscrollview) -> uiview? {    return self.contentview //the content view holds collection } 

note: uicollectionview subview of uiscrollview's contentview. uiscrollview's maximumzoomscale set 3.0. zooming isn't working excepted. after zooming content, collection view contents not scrollable in zoomed state.

any appreciated.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -