Latest 1.0.0-Alpha-6
Homepage https://github.com/itthisakp/LightStyle
License Light Style
Platforms ios 9.0
Dependencies LightStyleSupportingSDK

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": "LightStyleSDK",
    "version": "1.0.0-Alpha-6",
    "summary": "Light Style 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/LightStyle.git",
        "tag": "1.0.0-Alpha-6"
    },
    "ios": {
        "vendored_frameworks": "LightStyleSDK.framework"
    },
    "dependencies": {
        "LightStyleSupportingSDK": []
    },
    "user_target_xcconfig": {
        "ENABLE_BITCODE": "NO"
    },
    "pod_target_xcconfig": {
        "ENABLE_BITCODE": "NO"
    }
}

Pin It on Pinterest

Share This