iwheelbuy / squaremosaiclayout Goto Github PK
View Code? Open in Web Editor NEWAn extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations :large_orange_diamond:
License: MIT License
An extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations :large_orange_diamond:
License: MIT License
Hi,
For iOS projets it's will be great to make your component Carthage compatible
Take a look at these articles:
On your README.md
add on top and add section for the installation with Carthage.
Hi, I set shadow for section but doesn't effect on section
`func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {
switch kind {
case SquareMosaicLayoutSectionBacker:
let view: UICollectionReusableView = collectionView.dequeueSupplementary(kind, indexPath: indexPath, kind: kind)
view.layer.backgroundColor = UIColor.white.cgColor
view.layer.roundedAllCorner(width: 5, height: 5)
view.layer.borderColor = UIColor.clear.cgColor
view.layer.shadowColor = UIColor.lightGray.cgColor
view.layer.shadowOffset = CGSize(width: 13, height: 13)
view.layer.shadowOpacity = 15
view.layer.shadowRadius = 12
view.layer.masksToBounds = false
view.masksToBounds = false
return view
case SquareMosaicLayoutSectionHeader:
let view: UICollectionReusableView = collectionView.dequeueSupplementary(kind, indexPath: indexPath, kind: kind)
view.layer.backgroundColor = UIColor.clear.cgColor
let label = UILabel()
label.text = "header"
label.font = UIFont.systemFont(ofSize: 20)
label.textAlignment = .center
label.frame = view.bounds
view.addSubview(label)
return view
default:
fatalError()
}
}`
When collection view has thousands of items then method prepare() works slow that causes some lags/freezes, especially it is noticeable on device orientation change. Thanks.
Hi, I'm wondering why the deploy target is iOS 9.0.
I tried the demo app on iOS 8.1 and it works quite normal.
Is there any other issue I didn't notice?
Is this compatible with objective c? I am able to import it by using the following code, but cannot initialize it.
#import "SquareMosaicLayout-Swift.h"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.