Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Custom flow layout did not work in ASCollectionNode ,But work in UICollectionView #3304

Open
yaxunliu opened this issue Mar 28, 2018 · 0 comments

Comments

@yaxunliu
Copy link

Part of the display is not normal In ASCollectionNode:
issue

Normal display should be like this:
normal

Demo

ASCollectionNode :

let layout = EmojiFlowLayout()
        let collecNode = ASCollectionNode(collectionViewLayout: layout)
        collecNode.view.isPagingEnabled = true
        collecNode.dataSource = self
        collecNode.delegate = self

UICollectionView :

 let collection = UICollectionView(frame: CGRect(x: 0, y: 100, width: self.view.bounds.width, height: 150), collectionViewLayout: EmojiFlowLayout())
        collection.dataSource = self
        collection.delegate = self
        collection.isPagingEnabled = true
        collection.register(UICollectionViewCell.self, forCellWithReuseIdentifier: "UICollectionViewCell")
        collection.backgroundColor = UIColor.white
        view.addSubview(collection)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant