Skip to content

Commit e9990a4

Browse files
miklashevskyMaherKSantina
authored andcommitted
ability to override protocol methods (#45)
* open func to override * Updated pod version to 1.2.2
1 parent 685f971 commit e9990a4

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- MSPeekCollectionViewDelegateImplementation (1.2.1)
2+
- MSPeekCollectionViewDelegateImplementation (1.2.2)
33

44
DEPENDENCIES:
55
- MSPeekCollectionViewDelegateImplementation (from `../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
MSPeekCollectionViewDelegateImplementation: fcf03209da766882db0dc07c21d32981b7ba2fae
12+
MSPeekCollectionViewDelegateImplementation: dc9c3aa660f03c4b2bb84edb1144c87ba562915e
1313

1414
PODFILE CHECKSUM: 8d230cee08c8a8b7e62859eff8016277efe2311d
1515

Example/Pods/Local Podspecs/MSPeekCollectionViewDelegateImplementation.podspec.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/MSPeekCollectionViewDelegateImplementation/MSPeekCollectionViewDelegateImplementation-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MSPeekCollectionViewDelegateImplementation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'MSPeekCollectionViewDelegateImplementation'
11-
s.version = '1.2.1'
11+
s.version = '1.2.2'
1212
s.summary = 'A custom paging behavior that peeks the previous and next items in a collection view'
1313
s.swift_version = '4.2'
1414

MSPeekCollectionViewDelegateImplementation/Classes/MSPeekCollectionViewDelegateImplementation.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,20 @@ extension MSPeekCollectionViewDelegateImplementation: UICollectionViewDelegateFl
128128
currentScrollOffset = scrollView.contentOffset
129129
}
130130

131-
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
131+
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
132132
return scrollDirection.size(for: itemLength(collectionView), defaultSize: collectionView.frame.size)
133133
}
134134

135-
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
135+
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
136136
let insets = cellSpacing + cellPeekWidth
137137
return scrollDirection.edgeInsets(for: insets)
138138
}
139139

140-
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
140+
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
141141
return 0
142142
}
143143

144-
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
144+
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
145145
return cellSpacing
146146
}
147147

0 commit comments

Comments
 (0)