Skip to content

Commit 795c7e6

Browse files
committed
Specified iOS platform for the swift package
1 parent 98cada1 commit 795c7e6

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

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

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import PackageDescription
55

66
let package = Package(
77
name: "SnappingLayout",
8+
platforms: [
9+
.iOS(.v9)
10+
],
811
products: [
912
// Products define the executables and libraries a package produces, and make them visible to other packages.
1013
.library(

Sources/SnappingLayout/Classes/SnappingLayout.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// HorizontalSnappingLayout.swift
33
//
44

5+
import UIKit
6+
57
/// This works best when setting `collectionView.decelerationRate = .fast`.
68
public class SnappingLayout: UICollectionViewFlowLayout {
79

0 commit comments

Comments
 (0)