From c8230ef50ef63ffb1777717708d250622533b41c Mon Sep 17 00:00:00 2001 From: Tomasz Lewandowski Date: Sat, 25 Jan 2020 01:33:02 +0100 Subject: [PATCH 1/4] readme.md - fix codecov badge url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c8ce36b..69dfa76 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Cocoapods](https://img.shields.io/cocoapods/v/Visually.svg?style=flat)](https://cocoapods.org/pods/Visually) [![Platform](https://img.shields.io/cocoapods/p/Visually.svg?style=flat)](https://cocoapods.org/pods/Visually) [![Build Status](https://travis-ci.org/lukkas/Visually.svg)](https://travis-ci.org/codecov/example-swift) -[![codecov.io](https://codecov.io/gh/lukkas/Visually/branch/master/graphs/badge.svg)](https://codecov.io/gh/codecov/example-swift/branch/master) +[![codecov.io](https://codecov.io/gh/lukkas/Visually/branch/master/graphs/badge.svg)](https://codecov.io/gh/lukkas/Visually) [![License](https://img.shields.io/cocoapods/l/Visually.svg?style=flat)](https://cocoapods.org/pods/Visually) # Visually From 8564a4fd75cae4c44e450f0b3c6f9902e7141766 Mon Sep 17 00:00:00 2001 From: Tomasz Lewandowski Date: Sat, 25 Jan 2020 01:33:32 +0100 Subject: [PATCH 2/4] add swift package manager support --- .gitignore | 5 ++++- Package.swift | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore index 62b94e6..c026def 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,7 @@ xcuserdata/ /*.gcno ## Test output -test_output \ No newline at end of file +test_output + +#$ Swift Package Manager +.build/ diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..ca25898 --- /dev/null +++ b/Package.swift @@ -0,0 +1,32 @@ +// swift-tools-version:5.1 +// +// Package.swift +// Visually +// +// Created by Tomasz Lewandowski on 22/01/2020. +// +import PackageDescription + +let package = Package( + name: "Visually", + platforms: [ + .macOS(.v10_11), + .iOS(.v8), + .tvOS(.v9) + ], + products: [ + .library( + name: "Visually", + targets: ["Visually"]) + ], + targets: [ + .target( + name: "Visually", + dependencies: [], + path: "Visually"), + .testTarget( + name: "VisuallyTests", + dependencies: ["Visually"], + path: "VisuallyTests") + ] +) From dfaf02e9aed01c723417b41b3cffb78c56a3db2f Mon Sep 17 00:00:00 2001 From: Tomasz Lewandowski Date: Sat, 25 Jan 2020 02:12:39 +0100 Subject: [PATCH 3/4] update README.md with swift package manager --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 69dfa76..2ae30c8 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,35 @@ For more details see [CocoaPods website](http://cocoapods.org) Add `github "lukkas/Visually"` to your Cartfile, run `carthage update` and drag built frameworks to your Xcode project. For more details see [Carthage git repository](https://github.com/Carthage/Carthage) +### Swift Package Manager + +To install Visually using **Swift Package Manager** go through following steps: + +1. Add following package dependency in you **Package.swift** ``` .package(url: "https://github.com/lukkas/Visually.git", from: "2.0.0") ``` +2. Add following target dependency in your **Package.swift** ``` dependencies: ["Visually"]) ``` + +For instance this is how it might look like: +```swift +import PackageDescription + +let package = Package( + name: "YourExecutable", + products: [ + .executable( + name: "YourExecutable", + targets: ["YourExecutable"]) + ], + dependencies: [ + .package(url: "https://github.com/lukkas/Visually.git", from: "2.0.0") + ], + targets: [ + .target( + name: "YourExecutable", + dependencies: ["Visually"]) + ] +) +``` + ## Operators and rules 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: From 7038c72086dc84f3463e9acce4c7c339d5a82845 Mon Sep 17 00:00:00 2001 From: Tomasz Lewandowski Date: Thu, 6 Feb 2020 20:56:17 +0100 Subject: [PATCH 4/4] shorten swift package manager description --- README.md | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/README.md b/README.md index 2ae30c8..76f9108 100644 --- a/README.md +++ b/README.md @@ -31,31 +31,11 @@ For more details see [Carthage git repository](https://github.com/Carthage/Carth ### Swift Package Manager -To install Visually using **Swift Package Manager** go through following steps: - -1. Add following package dependency in you **Package.swift** ``` .package(url: "https://github.com/lukkas/Visually.git", from: "2.0.0") ``` -2. Add following target dependency in your **Package.swift** ``` dependencies: ["Visually"]) ``` - -For instance this is how it might look like: +Add following package dependency in your **Package.swift**: ```swift -import PackageDescription - -let package = Package( - name: "YourExecutable", - products: [ - .executable( - name: "YourExecutable", - targets: ["YourExecutable"]) - ], dependencies: [ .package(url: "https://github.com/lukkas/Visually.git", from: "2.0.0") - ], - targets: [ - .target( - name: "YourExecutable", - dependencies: ["Visually"]) ] -) ``` ## Operators and rules