CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Beam 1.0.0

Beam 1.0.0

Maintained by Meniny.



Beam 1.0.0

Meet Beam

Beam

Author EMail MIT
Version Platforms Swift
Build Passing Cocoapods Carthage SPM

🏵 Introduction

Beam is an EventBus implementation written in Swift..

📋 Requirements

Type Requirement

Platform

iOS

9.0+

macOS

10.10

tvOS

9.0

watchOS

2.0

Linux

N/A

IDE

Xcode

9.3+

Language

Swift

4.1+

📲 Installation

CocoaPods

Beam is available on CocoaPods.

use_frameworks!
pod 'Beam'

Manually

Copy all files in the Beam directory into your project.

🛌 Dependency

N/A

❤️ Contribution

You are welcome to fork and submit pull requests.

🔖 License

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

🔫 Usage

import Beam

enum TestEvent: String, Event {
    case callback
}
import Beam

class SomeClass {

    init() {
        Beam<TestEvent>.register(self) { (event) in
            // ...
        }
    }

    deinit {
        Beam<TestEvent>.unregister(self)
    }
}
import Beam

Beam<TestEvent>.post(TestEvent.callback)