Skip to content

Commit 236094a

Browse files
Merge pull request #37 from AppleArealidea/master
Fix Swift Package Manager
2 parents 49330ef + 724765b commit 236094a

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
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

Package.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
// swift-tools-version:4.2
1+
// swift-tools-version: 6.0
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
24
import PackageDescription
35

46
let package = Package(
57
name: "AlignedCollectionViewFlowLayout",
68
products: [
7-
.library(name: "AlignedCollectionViewFlowLayout", targets: ["AlignedCollectionViewFlowLayout"])
9+
.library(
10+
name: "AlignedCollectionViewFlowLayout",
11+
targets: ["AlignedCollectionViewFlowLayout"])
812
],
913
targets: [
1014
.target(
1115
name: "AlignedCollectionViewFlowLayout",
12-
path: "AlignedCollectionViewFlowLayout"
13-
)
16+
path: "AlignedCollectionViewFlowLayout")
1417
]
1518
)

Package@swift-5.7.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// swift-tools-version: 5.7
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "AlignedCollectionViewFlowLayout",
8+
products: [
9+
.library(
10+
name: "AlignedCollectionViewFlowLayout",
11+
targets: ["AlignedCollectionViewFlowLayout"])
12+
],
13+
targets: [
14+
.target(
15+
name: "AlignedCollectionViewFlowLayout",
16+
path: "AlignedCollectionViewFlowLayout")
17+
]
18+
)

0 commit comments

Comments
 (0)