Skip to content

Commit dfaf02e

Browse files
update README.md with swift package manager
1 parent 8564a4f commit dfaf02e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,35 @@ For more details see [CocoaPods website](http://cocoapods.org)
2929
Add `github "lukkas/Visually"` to your Cartfile, run `carthage update` and drag built frameworks to your Xcode project.
3030
For more details see [Carthage git repository](https://github.com/Carthage/Carthage)
3131

32+
### Swift Package Manager
33+
34+
To install Visually using **Swift Package Manager** go through following steps:
35+
36+
1. Add following package dependency in you **Package.swift** ``` .package(url: "https://github.com/lukkas/Visually.git", from: "2.0.0") ```
37+
2. Add following target dependency in your **Package.swift** ``` dependencies: ["Visually"]) ```
38+
39+
For instance this is how it might look like:
40+
```swift
41+
import PackageDescription
42+
43+
let package = Package(
44+
name: "YourExecutable",
45+
products: [
46+
.executable(
47+
name: "YourExecutable",
48+
targets: ["YourExecutable"])
49+
],
50+
dependencies: [
51+
.package(url: "https://github.com/lukkas/Visually.git", from: "2.0.0")
52+
],
53+
targets: [
54+
.target(
55+
name: "YourExecutable",
56+
dependencies: ["Visually"])
57+
]
58+
)
59+
```
60+
3261
## Operators and rules
3362

3463
Visually defines 15 custom operators and adds subscripts to UIView/NSView in order to achieve its objectives. These operators can be divided into 5 groups:

0 commit comments

Comments
 (0)