Latest 1.1.0
Homepage https://github.com/ecnepsnai/BonjourSwift
License MIT
Platforms ios 8.0, tvos 9.0
Authors

Easily access Bonjour services and domains in Swift
Updated to Swift 3.0

Installation

Cocoapods

Add:

pod ‘BonjourSwift’

To your pod file. Make sure you uncomment use_frameworks!

Manual

Drag Bonjour.swift onto your project.

Usage

Finding a service

func startSearch() {
    let browser: Bonjour = Bonjour()
    // This will find all HTTP servers - Check out Bonjour.Services for common services
    browser.findService(Bonjour.Services.Hypertext_Transfer, domain: Bonjour.LocalDomain) { (services) in
        // Do something with your services!
        // services will be an empty array if nothing was found
    }
}

Finding domains

func startSearch() {
    let browser: Bonjour = Bonjour()
    bonjour.findDomains { (domains) in
        // Do something with your domains!
        // services will be an empty array if nothing was found
    }
}

Features

  • Gracefully handle search that fail to find and services or domains
  • Adjustable timeouts
  • Method documentations
  • 100% organic free-range gluten-free vegan-certified

Latest podspec

{
    "name": "BonjourSwift",
    "version": "1.1.0",
    "summary": "Easily access Bonjour services and domains in Swift",
    "homepage": "https://github.com/ecnepsnai/BonjourSwift",
    "license": "MIT",
    "authors": {
        "Ian Spence": "ian@ecnepsnai.com"
    },
    "social_media_url": "https://twitter.com/ecnepsnai",
    "source": {
        "git": "https://github.com/ecnepsnai/BonjourSwift.git",
        "tag": "1.1.0"
    },
    "source_files": "Bonjour.swift",
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This