An open API service indexing awesome lists of open source software.

https://github.com/meniny/eventer

Event bus for iOS
https://github.com/meniny/eventer

eventbus events

Last synced: 2 months ago
JSON representation

Event bus for iOS

Awesome Lists containing this project

README

          





Version
Author
Build Passing
Swift


Platforms
MIT


Cocoapods
Carthage
SPM

## 🏵 Introduction

**Eventer** is a tiny event post/subscribe library for iOS.

## 📋 Requirements

- iOS 8.0+
- Xcode 9.0+ with Swift 5.0+

## 📲 Installation

`Eventer` is available on [CocoaPods](https://cocoapods.org):

```ruby
use_frameworks!
pod 'Eventer'
```

## ❤️ Contribution

You are welcome to fork and submit pull requests.

## 🔖 License

`Eventer` is open-sourced software, licensed under the `MIT` license.

## 💫 Usage

```swift
Eventer.on(self, name: "EventName") { (notification) in
// ...
}
Eventer.onMainThread(self, name: "AnotherEventName") { (_) in
// ...
}
```

```swift
Eventer.post(EventName.didAppear.rawValue, on: .main)
```

```swift
Eventer.unregister(self)
```