Skip to content

Commit 09820f4

Browse files
author
Semen Osipov
committed
Fixed warning
1 parent 0052bfa commit 09820f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

AlignedCollectionViewFlowLayout/Classes/AlignedCollectionViewFlowLayout.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ open class AlignedCollectionViewFlowLayout: UICollectionViewFlowLayout {
124124
default:
125125
break
126126
}
127+
@unknown default:
128+
fatalError("Unknown orientation")
127129
}
128130

129131
// It's safe to force-unwrap as `.leading` and `.trailing` are covered

0 commit comments

Comments
 (0)