Comments (3)
Could you please send me a demo or some code?
from emptykit.
The source code is simple. I just create UICollectionView instance and set-up content inset. When I comment content inset line, centring is fine
let flowLayout = UICollectionViewFlowLayout()
let indent: CGFloat = 20.0
flowLayout.minimumLineSpacing = indent
flowLayout.minimumInteritemSpacing = indent
let collectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: flowLayout)
collectionView.dataSource = self
collectionView.delegate = self
collectionView.contentInset = UIEdgeInsets(top: indent, left: indent, bottom: indent, right: indent)
collectionView.ept.dataSource = self
collectionView.ept.delegate = self
from emptykit.
Thanks for your issue!
It should be fixed in the new version(3.1.1).
I will close the issue for now.
from emptykit.
Related Issues (20)
- 更新版本4.0有代码编译出错 HOT 1
- 显示状态时候使用MJ下拉刷新造成当前视图向上偏移大约40像素 HOT 5
- Need customised button HOT 5
- Cannot convert value of type 'AutoreleasingUnsafeMutablePointer<AnyClass>' (aka 'AutoreleasingUnsafeMutablePointer<AnyObject.Type>') to expected argument type 'AutoreleasingUnsafeMutablePointer<AnyClass?>!' (aka 'ImplicitlyUnwrappedOptional<AutoreleasingUnsafeMutablePointer<Optional<AnyObject.Type>>>') HOT 1
- Question: How to avoid cover the header view HOT 5
- EmptyKit 4.x EmptyView.swift line 264 warning " 'characters' is deprecated: Please use String or Substring directly", please update swift4.0 fit HOT 1
- Please support UIScrollView emptyView displayable,thk HOT 1
- Code refactoring
- 要支持swift4.2,不然就落后了 HOT 1
- Why use weak
- Nothing displayed when number or rows == 0 HOT 2
- 选了好久~~最终选用这个~ 哥 升级个swift5呗~ HOT 1
- prepareButtonForEmpty 这个方法没在新版本里?
- Vertical alignment does not take into account tableheaderview HOT 1
- swift4 support? HOT 2
- failed when compiling swizzle.swift , installed manually HOT 1
- AutoreleasingUnsafeMutablePointer HOT 2
- 请问如何解决设置了无数据图片后,在有数据的页面首次加载会闪一下显示这个无数据图片的问题? HOT 3
- 忽略section后,不能滚动了 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emptykit.