https://github.com/haraldbregu/geapplication
Managing global events in app by sending signal to the listener.
https://github.com/haraldbregu/geapplication
Last synced: about 2 months ago
JSON representation
Managing global events in app by sending signal to the listener.
- Host: GitHub
- URL: https://github.com/haraldbregu/geapplication
- Owner: HaraldBregu
- License: mit
- Created: 2018-09-18T19:13:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T09:24:33.000Z (over 6 years ago)
- Last Synced: 2025-01-14T04:14:09.467Z (3 months ago)
- Language: Swift
- Size: 313 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GEApplication

[](https://cocoapods.org/pods/GEApplication)
[](https://github.com/haraldbregu/GEApplication/releases)
[](http://cocoapods.org/pods/GEApplication)
[](https://travis-ci.com/HaraldBregu/GEApplication)
[](https://twitter.com/HaraldBregu)
[](https://www.paypal.me/haraldbregu)## About
This library is maintained by Harald Bregu.
I'm specialized in the designing and coding of custom UI for iOS Apps and Developing New Patterns.## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
GEApplication is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'GEApplication'
```
```swift
// Add Listener
GEApplication.current.addListener(self) { application in
}
```
```swift
// Remove Listener
GEApplication.current.removeListener(self)
``````swift
// Add event to application and send signal to the listener
let event = GAEvent()
event.name = "User did tap the help button"
GEApplication.current.sendEvent(event)
```## Flow of events
To start using this library first you need to understand the logic behind. First add listener to each Controller or views and after you can send events to the GEApplication. Every time you send event a signal is sent to each listener.
![]()
## Requirements
- iOS 9.0+
- Xcode 9## Author
Harald Bregu, [email protected]
## License
GEApplication is available under the MIT license. See the LICENSE file for more info.