Skip to content

Commit c51914c

Browse files
committed
Update Package.swift and README.md
1 parent 1a00473 commit c51914c

2 files changed

Lines changed: 25 additions & 12 deletions

File tree

Package.swift

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
// swift-tools-version:5.3
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
1+
// swift-tools-version:5.1
32

43
import PackageDescription
54

65
let package = Package(
76
name: "UIImageViewAlignedSwift",
7+
platforms: [
8+
.iOS(.v9),
9+
.tvOS(.v9)
10+
],
811
products: [
9-
// Products define the executables and libraries a package produces, and make them visible to other packages.
1012
.library(
1113
name: "UIImageViewAlignedSwift",
12-
targets: ["UIImageViewAlignedSwift"]),
14+
targets: ["UIImageViewAlignedSwift"]
15+
)
1316
],
1417
targets: [
15-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
16-
// Targets can depend on other targets in this package, and on products in packages this package depends on.
1718
.target(
1819
name: "UIImageViewAlignedSwift",
1920
path: ".",
20-
exclude: ["README.md",
21-
"UIImageViewAlignedSwift",
22-
"LICENSE",
23-
"UIImageViewAlignedSwift.podspec"],
24-
sources: ["UIImageViewAligned.swift"])
21+
exclude: [
22+
"README.md",
23+
"UIImageViewAlignedSwift",
24+
"LICENSE",
25+
"UIImageViewAlignedSwift.podspec"
26+
],
27+
sources: ["UIImageViewAligned.swift"]
28+
)
2529
]
2630
)

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
[![Version](https://img.shields.io/cocoapods/v/UIImageViewAlignedSwift.svg?style=flat)](http://cocoapods.org/pods/UIImageViewAlignedSwift)
44
[![License](https://img.shields.io/cocoapods/l/UIImageViewAlignedSwift.svg?style=flat)](http://cocoapods.org/pods/UIImageViewAlignedSwift)
55
[![Platform](https://img.shields.io/cocoapods/p/UIImageViewAlignedSwift.svg?style=flat)](http://cocoapods.org/pods/UIImageViewAlignedSwift)
6-
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
6+
[![Swift Package Manager compatible](https://img.shields.io/badge/Swift_Package_Manager-compatible-4BC51D.svg)](https://www.swift.org/package-manager/)
7+
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/Carthage/Carthage)
78

89
## Usage
910

@@ -15,6 +16,14 @@ To run the example project, clone the repo, and run `pod install` from the Examp
1516

1617
## Installation
1718

19+
### Package Manager
20+
21+
You can add UIImageViewAlignedSwift to an Xcode project by adding it as a package dependency.
22+
23+
1. From the **File** menu, select **Add Packages…**
24+
2. Enter `https://github.com/sochalewski/UIImageViewAlignedSwift` into the package repository URL text field.
25+
3. Add the package to your app target.
26+
1827
### CocoaPods
1928

2029
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:

0 commit comments

Comments
 (0)