Skip to content

Commit

Permalink
Merge branch 'master' of github.com:WeTransfer/UINotifications
Browse files Browse the repository at this point in the history
  • Loading branch information
AvdLee committed Dec 2, 2020
2 parents 51e56f9 + a4d5490 commit d838a4b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,40 @@ UINotificationCenter.current.isDuplicateQueueingAllowed = true

## Installation

### Swift Package Manager

The [Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

#### Manifest File

Add Mocker as a package to your `Package.swift` file and then specify it as a dependency of the Target in which you wish to use it.

```swift
import PackageDescription

let package = Package(
name: "MyProject",
platforms: [
.macOS(.v10_15)
],
dependencies: [
.package(url: "https://github.com/WeTransfer/UINotifications.git", .upToNextMajor(from: "1.3.0"))
],
targets: [
.target(
name: "MyProject",
dependencies: ["UINotifications"]),
.testTarget(
name: "MyProjectTests",
dependencies: ["MyProject"]),
]
)
```

#### Xcode

To add Mocker as a [dependency](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app) to your Xcode project, select *File > Swift Packages > Add Package Dependency* and enter the repository URL.

### CocoaPods

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

0 comments on commit d838a4b

Please sign in to comment.