Skip to content

Commit fb36cb9

Browse files
committed
Adding header inset for demo project
1 parent 25e0d95 commit fb36cb9

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

Screenshots/DemoExample.png

901 Bytes
Loading

WaterfallDemo/WaterfallFlowLayout/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class ViewController: UIViewController, UICollectionViewDataSource, CollectionVi
2828

2929
let layout = CollectionViewWaterfallLayout()
3030
layout.sectionInset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
31+
layout.headerInset = UIEdgeInsetsMake(20, 0, 0, 0)
3132
layout.headerHeight = 50
3233
layout.footerHeight = 20
3334
layout.minimumColumnSpacing = 20

0 commit comments

Comments
 (0)