TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | Apache 2 |
ReleasedLast Release | Jan 2017 |
SwiftSwift Version | 3.0.1 |
SPMSupports SPM | ✓ |
Maintained by Mohsan Khan.
MessageBox is a simple concept for decoupling entities. Think of it as notifications but the opposite.
let messageBox:MessageBox = MessageBox()
// set
messageBox.setObject("TestObject1", forKey:"TestKey1")
// get
// but don't remove it, keep it stored, so that it can still be retrieved later
let someObject:String = messageBox.getObject(forKey:"TestKey1", removeIfFound:false)
// get
// and remove it
let someObject:String = messageBox.getObject(forKey:"TestKey1", removeIfFound:true)
There is no framework/library distibution, I recommend that you add the MessageBox-Concept/Sources to your project. As this will allow you to easily find & read the MessageBox API, it will also allow MessageBox to compile using your apps build settings.
git clone https://github.com/MKGitHub/MessageBox-Concept.git
then Drag & Drop the MessageBox-Concept/Sources into your Xcode project.
Drag & Drop the MessageBox-Concept/Sources into your Xcode project.
github "MKGitHub/MessageBox-Concept" ~> 1.1.1
then carthage update --no-build
then Drag & Drop the MessageBox-Concept/Sources into your Xcode project.
swift build
or swift package generate-xcodeproj
pod 'MessageBox', '~> 1.1.1'
Go to the documentation index page.
MessageBox is used in production in the following apps/games (known to me), these apps are together used by many millions of users every day. Please let me know if you use MessageBox.
https://github.com/MKGitHub/MessageBox-Concept
Copyright 2016/2017 Mohsan Khan
Licensed under the Apache License, Version 2.0.