BBPortal 0.1.2

BBPortal 0.1.2

LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2018
SPMSupports SPM

Maintained by Dejan Agostini.

BBPortal 0.1.2


Version License Platform


BBPortal is a library that will enable you to pass data between your targets and applications (excluding the watch target). It's using App Groups in the background to save data in the shared container and another library - DAFileMonitor - is used to listen to changes on the file. You can create as many portals as you want. You can give your portals different IDs or you can give them all the same ID. When you push data through your portal, all other portals with the same ID will receive the data.

In the example below, you can see two apps controlling each other by passing data in real-time:


You can read more about this library on my blog:


var portal: BBPortalProtocol = BBPortal(withGroupIdentifier: "", andPortalID: "id.for.this.portal")

// Send data
portal.send(data: ["key": "What ever data you want"]) { 
    (error) in

    if let anError = error {
        print("Send failed with error: ", anError)

// Receive data
portal.onDataAvailable = {
    (data) in

    guard let dict = data as? [String: Any?] else {

    print("I received some data through the portal: ", dict)


BBPortal is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BBPortal'


Dejan Agostini, [email protected]


BBPortal is available under the MIT license. See the LICENSE file for more info.