Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

Issue with stacked layout location  #41

@albarq

Description

@albarq

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-
2016-12-27-photo-00000062

2- When I exposed any items it will shows at same wrong location ... same as above
2016-12-27-photo-00000063

3- but when I click on unexposed items ... it will show all items but in CORRECT location ... to (10)
2016-12-27-photo-00000065

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions