Latest 0.1
Homepage https://github.com/joeblau/sensor-visualizer-kit
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

SensorVisualizerKit
SensorVisualizerKit
SensorVisualizerKit

Visualize iOS sensors for live presentations, iOS AppStore demos, Apple Store prototypes, design reviews.

SensorVisualizerKit

Install

Carthage: To integrate SensorVisualizerKit into your Xcode project using Carthage, specify it in your Cartfile:

github "joeblau/sensor-visualizer-kit" ~> 0.1

Cocoapods: To integrate SensorVisualizerKit into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'SensorVisualizerKit', '~> 0.1'

Use

Storyboards

import UIKit
import SensorVisualizerKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow? = {
        return SensorVisualizerWindow(frame: UIScreen.main.bounds)
    }()

    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        return true
    }
}

Programatic

import UIKit
import SensorVisualizerKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, 
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        window = SensorVisualizerWindow(frame: UIScreen.main.bounds)
        window?.rootViewController = ViewController()
        window?.makeKeyAndVisible()
        return true
    }
}

Configure

The method signature for initializing the SesnorVisuzliserWindow takes 1 required property and 2 optional properties

  • frame: The size of the window which is ususally the screen bounds
  • primary (optional): The tap and shake color which defaults to the tint color
  • secondary (optional): The tap border color which defaults to the tint color

Latest podspec

{
    "name": "SensorVisualizerKit",
    "version": "0.1",
    "summary": "Visualize iOS sensors",
    "description": "Visualize iOS sensors for live presentations, iOS AppStore demos, Apple Store prototypes, design reviews.",
    "homepage": "https://github.com/joeblau/sensor-visualizer-kit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Joe Blau": "[email protected]"
    },
    "social_media_url": "https://twitter.com/joeblau",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/joeblau/sensor-visualizer-kit.git",
        "tag": "0.1"
    },
    "swift_versions": "5.0",
    "source_files": "Sources/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This