File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,17 +53,15 @@ public struct CollectionViewSlantedMasks {
5353 let points : MaskPoints
5454
5555 if scrollDirection. isVertical {
56- switch slantingDirection {
57- case . downward:
56+ if slantingDirection == . downward {
5857 points = CollectionViewSlantedMasks . verticalDownwardMaskPoints ( size: size, slantingSize: slantingSize)
59- default :
58+ } else {
6059 points = CollectionViewSlantedMasks . verticalUpwardMaskPoints ( size: size, slantingSize: slantingSize)
6160 }
6261 } else {
63- switch slantingDirection {
64- case . downward:
62+ if slantingDirection == . downward {
6563 points = CollectionViewSlantedMasks . horizontalDownwardMaskPoints ( size: size, slantingSize: slantingSize)
66- default :
64+ } else {
6765 points = CollectionViewSlantedMasks . horizontalUpwardMaskPoints ( size: size, slantingSize: slantingSize)
6866 }
6967 }
You can’t perform that action at this time.
0 commit comments