Latest 1.0.1
Homepage https://github.com/itthisakp/LightStyle
License Light Style
Platforms ios 9.0

LightStyle

Usage

// Import SDK
import LightStyleSDK

// Get rooms
let rooms = LightStyleSDK.shared.rooms

// Set Switch Command
let sw = LightStyleSDK.shared.rooms.first!.switches.first!
let cmd = sw.commands.first!

LightStyleSDK.shared.sendCommand(to: sw, with: cmd) { (success, error) in
    if success {
        print("Send Command Successfully")
    } else {
        print("error: (error?.description ?? "unknown error").")
    }
}

Latest podspec

{
    "name": "LightStyleSupportingSDK",
    "version": "1.0.1",
    "summary": "Light Style SupportingSDK SDK",
    "homepage": "https://github.com/itthisakp/LightStyle",
    "license": "Light Style",
    "authors": "LightStyle",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.2",
    "source": {
        "git": "https://github.com/itthisakp/LightStyleSupportingSDK.git",
        "tag": "1.0.1"
    },
    "ios": {
        "vendored_frameworks": "LightStyleSupportingSDK.framework"
    }
}

Pin It on Pinterest

Share This