Skip to content

Commit

Permalink
Patch Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnBaek committed Jan 26, 2020
1 parent 7f9a640 commit 5140dcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Example/Slippery/CalendarVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extension CalendarVC: UICollectionViewDelegate, UICollectionViewDataSource, UICo

func setupCollectionView(){

self.collectionViewLayout = SlipperyFlowLayout.configureLayout(collectionView: self.calendarView, itemSize: CGSize(width: 120, height: 180), minimumLineSpacing: 10, highlightOption: .center(.normal))
self.collectionViewLayout = SlipperyFlowLayout.configureLayout(collectionView: self.calendarView, itemSize: CGSize(width: 120, height: self.calendarView.frame.height), minimumLineSpacing: 10, highlightOption: .center(.normal))

self.collectionViewLayout.invalidateLayout()
self.calendarView.layoutIfNeeded()
Expand Down
2 changes: 1 addition & 1 deletion Example/Slippery/PhotoVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension PhotoVC: UICollectionViewDelegate, UICollectionViewDataSource, UIColle

func setupCollectionView(){

self.collectionViewLayout = SlipperyFlowLayout.configureLayout(collectionView: self.photoView, itemSize: CGSize(width: 150, height: 180), minimumLineSpacing: 20, highlightOption: .center(.normal))
self.collectionViewLayout = SlipperyFlowLayout.configureLayout(collectionView: self.photoView, itemSize: CGSize(width: 150, height: self.photoView.frame.height), minimumLineSpacing: 20, highlightOption: .center(.normal))

self.collectionViewLayout.minimumOpacityFactor = 0.1
self.collectionViewLayout.minimumScaleFactor = 1.0
Expand Down
6 changes: 2 additions & 4 deletions Example/Slippery/SliceVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class SliceVC: UIViewController {
extension SliceVC: UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
private var intialOffset: CGFloat {
return self.collectionViewLayout.initialOffset

}


Expand All @@ -62,9 +61,8 @@ extension SliceVC: UICollectionViewDelegate, UICollectionViewDataSource, UIColle

}

func setupCollectionView(){

self.collectionViewLayout = SlipperyFlowLayout.configureLayout(collectionView: self.sliceView, itemSize: CGSize(width: 30, height: 180), minimumLineSpacing: 20, highlightOption: .custom(.leading, .third))
func setupCollectionView() {
self.collectionViewLayout = SlipperyFlowLayout.configureLayout(collectionView: self.sliceView, itemSize: CGSize(width: 30, height: self.sliceView.frame.height), minimumLineSpacing: 20, highlightOption: .custom(.leading, .third))

self.collectionViewLayout.invalidateLayout()
self.sliceView.layoutIfNeeded()
Expand Down

0 comments on commit 5140dcf

Please sign in to comment.