Latest 0.0.2
Homepage https://github.com/takkyun/SBLApplication
License MIT
Platforms ios 9.0
Authors

Version
License

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 3
  • iOS9 or later

Installation

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

pod "SBLApplication"

You also need to introduce main.swift with the following code:

import SBLApplication

UIApplicationMain(
  CommandLine.argc,
  UnsafeMutableRawPointer(CommandLine.unsafeArgv).bindMemory(to: UnsafeMutablePointer<Int8>.self,
                                                             capacity: Int(CommandLine.argc)),
  NSStringFromClass(SBLApplication.self),
  NSStringFromClass(AppDelegate.self) // it should be matched to your AppDelegate class
)

and then remove @UIApplicationMain from your AppDelegate.

To enable touch indicator, you may need to cast an instance of UIApplication to SBLApplication:

import UIKit
import SBLApplication

class AppDelegate: UIResponder {
  // ... snip ...
  func application(_ application: UIApplication,
                   didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    if let app = application as? SBLApplication {
      app.isShowingTouchIndicators = true
    }
    return true
  }
  // ... snip ...
}

Copyright

SBLApplication is developed by Takuya Otani / SimpleBoxes.

Copyright (c) 2017 Takuya Otani

Copyright (c) 2017 SerendipityNZ Ltd.

License

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

Latest podspec

{
    "name": "SBLApplication",
    "version": "0.0.2",
    "summary": "Application base class to support displaying touch indicators.",
    "description": "`SBLApplication` works as a base class of application, in other words, it is an alternative of `UIApplication`.n`SBLApplication` can show touch indicators on top of the whole views so that we can demonstrate user intercations.",
    "homepage": "https://github.com/takkyun/SBLApplication",
    "screenshots": "https://raw.github.com/takkyun/SBLApplication/master/sample.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Takuya Otani": "[email protected]"
    },
    "source": {
        "git": "https://github.com/takkyun/SBLApplication.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SBLApplication/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This