Swift Events
Swift Events gives you the possibility to create custom events. The original repository was created by Stephen Haney.
It's even possible to add new event listeners with a custom priority as a UInt8
Getting started
The easiest way to get started with Swift Events is to use Swift PM.
Prerequisites
To use Swift Events in your project make sure you are using at least the Swift-4.0-REALEASE-toolchain
.
Because Swift Events just depends on Foundation
you can use it anywhere, on the server-side, macOS, iOS, watchOS, tvOS...
Installing
With Swift PM (= Package Manager):
Add the following to the dependencies of your Package.swift
.package( url: "https://github.com/robinwalterfit/Swift-Events.git", .upToNextMajor( from: "1.1.4" ) )
Then in your code place at the top of the files where you need Swift Events:
import Events
Running the tests
Run the tests in Xcode.
Deployment
Just follow the instructions of Installing and it should work.
Built With
...
Contributing
Please read CONTRIBUTING.md for details on my code of conduct, and the process for submitting pull requests to me.
Versioning
I use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Original author: Stephen Haney – Initial work – StephenHaney
- Robin Walter – robinwalterfit
License
This project is licensed under the MIT License - see the LICENSE.md file for details