diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..9e6bcf7 --- /dev/null +++ b/Package.swift @@ -0,0 +1,22 @@ +// swift-tools-version:5.1 + +import PackageDescription + +let package = Package( + name: "UPCarouselFlowLayout", + platforms: [ + .iOS(.v13) + ], + products: [ + .library(name: "UPCarouselFlowLayout", + targets: ["UPCarouselFlowLayout"]) + ], + targets: [ + .target(name: "UPCarouselFlowLayout", + path: "UPCarouselFlowLayout") + ], + swiftLanguageVersions: [ + .v5 + ] +) + diff --git a/README.md b/README.md index d0dd95c..2f058fb 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,21 @@ Users can simply add to their Cartfile: github "ink-spot/UPCarouselFlowLayout" ``` +**Package.swift** + +```swift +let package = Package( + name: "MyPackage", + dependencies: [ + .package(url: "https://github.com/DSM-FLOW/UPCarouselFlowLayout.git", .upToNextMajor(from: "1.1.3")) + ], + targets: [ + .target(name: "MyTarget", dependencies: ["UPCarouselFlowLayout"]) + ] +) +``` + + ### Manual Simply copy the folder `UPCarouselFlowLayout` to your project and import it in XCode. diff --git a/UPCarouselFlowLayoutDemo/Assets.xcassets/AppIcon.appiconset/Contents.json b/UPCarouselFlowLayoutDemo/Assets.xcassets/AppIcon.appiconset/Contents.json index b8236c6..8121323 100644 --- a/UPCarouselFlowLayoutDemo/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/UPCarouselFlowLayoutDemo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -2,47 +2,52 @@ "images" : [ { "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" + "scale" : "2x", + "size" : "20x20" }, { "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" + "scale" : "3x", + "size" : "20x20" }, { "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" + "scale" : "2x", + "size" : "29x29" }, { "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" + "scale" : "3x", + "size" : "29x29" }, { "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" + "scale" : "2x", + "size" : "40x40" }, { "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" + "scale" : "3x", + "size" : "40x40" }, { "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" + "scale" : "2x", + "size" : "60x60" }, { "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" } ], "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +}