TGLStackedViewController
TGLStackedViewController copied to clipboard
Issue with stacked layout location
Hi,
I have added your great work TGLstackedView to my app and it looks great ... but it has one strange issue ... I spend hours to fix it without hope...
1- When view appeared the position of cards is not correct based on giving information (is suppose to be 10 from top of collectionView) .... - even if tried to push the cards to top it stacked at same location-
2- When I exposed any items it will shows at same wrong location ... same as above
3- but when I click on unexposed items ... it will show all items but in CORRECT location ... to (10)
and also it even can scroll to down and up !!
I have spend hours to check parameters to control this behavior ... and tried to test example app .. but I could not solve my issue because in example app when you click on unexposed items is not behaving any thing "No gesture"
Note: I am using 100% code as i am not familiar with IB Story board
let layout: TGLStackedLayout = TGLStackedLayout()
layout.itemSize = CGSize(width: view.bounds.width - 20, height: view.bounds.height-250)
layout.layoutMargin = UIEdgeInsetsMake(10, 0, 0, 0); //this is edge from collectionView "Gray Color"
layout.topReveal = 50
self.collectionView?.frame = CGRect(x:0, y:80, width: self.view.bounds.width, height: self.view.bounds.height-130) self.exposedPinningMode = .all self.exposedItemSize = CGSize(width: view.bounds.width - 20, height: view.bounds.height-200) self.exposedLayoutMargin = UIEdgeInsetsMake(10, 0, 0, 0); self.exposedBottomOverlap = 25 self.view.backgroundColor = .red
Thank you
Are your AutoLayout constraints as well as the VC's ExtendedEdges settings correct?
And did you set the .exposed* properties of TGLStackedViewController?
:) I tried many times even to modify your source file and still this issue showing... why first picture starting from this point x,y while i have set them 0,10 only! if you want me to show particular lines on my code no problem :