πŸšƒ EventBus implementation written in Swift.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets
Beam/Core
Sample
.gitignore
Beam.podspec
LICENSE.md
README.adoc
_config.yml

README.adoc

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)