xcode


How to set spacing between collectionview cells in Swift?


http://i.stack.imgur.com/8nGKh.png
How do i set a spacing between the rows in the collection view cell. As you can tell by the picture provided, they are way too close.
Since they are too close the text in the label cant break into 2 lines and im trying to figure out how to do that, but cant find anything as everything i search for is in objective -c and im only a beginner in swift.
Any help would be much appreciated! Thank you for your time!
Change the top, left, bottom and top insets as needed after implementing this layout delegate method:
func collectionView(collectionView: UICollectionView,
layout collectionViewLayout: UICollectionViewLayout,
insetForSectionAtIndex section: Int) -> UIEdgeInsets {
return UIEdgeInsets(top: 10.0, left: 10.0, bottom: 10.0, right: 10.0)
}

Related Links

Logging in Swift 2.0
Get file metadata from Amazon s3
SKSpriteNode can't load image from Images.xcassets in some iOS 9 simulators
CoreBluetooth Xcode
XCode 7.0b5: LaunchImage
Adding new rows to WKInterfaceTable without reloading existing rows
Bundle Fonts Into An AppleScriptObjC App
when i simulate the app on my device the buttons move
Change the Top Status Bar's Color of the SearchResultController (using Swift)
Xcode subproject path relativity
lldb swift not printing debug variables
XCode 7 XCTest(Kiwi) +load category methods called twice
Swift Cocoa : Asking for elevated permissions once and not needing to ask again?
Can't add self as subview - when adding xib file as subview
How to hide a static UITableViewCell with a button in Swift
Git not able to recognise addition of .xcscheme files in xcode project

Categories

HOME
python-2.7
opengl
ionic2
knockout.js
firebase
svn
generics
clearcase
mousemove
message-queue
portable-class-library
amp
capistrano
sharepoint-online
msmq
lc3
fasm
responsivevoice
jquery-select2-4
freertos
jodatime
spam
anova
coreldraw
animated-gif
jpa-2.1
tortoisemerge
tracing
points
react-bootstrap-table
cube
phpstorm-2016.1
infopath2010
rust-cargo
riotjs
overwrite
appcode
dreamfactory
busboy
pdfminer
runtimeexception
cordys-opentext
aurelia-cli
tidal-scheduler
imgur
contactless-smartcard
doctrine-extensions
spongycastle
realstudio
viewmodel
sony-future-lab-n
hibernate-ogm
solr-query-syntax
nslayoutconstraint
oracle-fusion-apps
mifos
researchkit
clp
traversable
diawi
lovefield
supersocket.net
fantom
relational-model
artisan
abstract-factory
flow-js
erlog
tree-structure
innerhtml
cout
xml-signature
relationships
squeezebox
coding-efficiency
accessory
code-complexity
redpitaya
air-native-extension
cpu-time
profiles
meteorite
yii-booster
delphi-xe4
asp.net-mvc-3-areas
tfs-sdk
smartfox
multiple-dispatch
spark-view-engine
system-information
uploading
type-safety
kolite
django-apps
delphi-prism
play2-mini
grails-validation
digiflow
channelfactory
formal-semantics
ppc
motif

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App