Latest 2.1.1
Homepage https://github.com/malt03/DebugHead
License MIT
Platforms ios 8.0
Dependencies BugImageCreator
Authors ,

Platform
Language
CocoaPods
Carthage compatible
License

Screenshot

About DebugHead

DebugHead is a library that arranges buttons that display the debug menu on the screen.
You can also move the button by dragging it.
You can also add menu functions yourself.

Example

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

Usage

Initialize

Specify the class of the menu you want to display first.
DebugHead is displayed when prepare is called.

Please do not call in production environment.

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  DebugHead.sharedInstance.prepare(menuClasses: [DebugMenuExit.self, DebugMenuHideDebugHead.self/*, and your plugins */])
}

To Create Plugins

You can create menus by conforming to the DebugMenu protocol.

public class DebugMenuFoo: DebugMenu {
  public static let debugMenuTitle = "Title"
  public static let debugMenuDangerLevel = DebugMenuDangerLevel.[None or Low or High or Extreme]
  public static let debugMenuAccessoryType = UITableViewCellAccessoryType.None
  public static func debugMenuSelected(debugHead: UIView, debugMenuTableViewController: UITableViewController) -> UIViewController? {
    // Do something
    return nil // If return a UIViewController instance, it will show.
  }
}

Other Features

  • You can remove the head with force touch.

Built-in Plugins

  • DebugMenuHideDebugHead
  • DebugMenuExit

Recommended Plugins

Installation

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

pod "DebugHead"

Author

License

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

Latest podspec

{
    "name": "DebugHead",
    "version": "2.1.1",
    "summary": "DebugHead like Facebook chat head.",
    "description": "DebugHead is a pod for debug.nIt can present a view like Facebook chat head.nWhen you tap it, it will open a debug menu.nAnd, you can make plugin easy.",
    "homepage": "https://github.com/malt03/DebugHead",
    "screenshots": "https://raw.githubusercontent.com/malt03/DebugHead/master/Screenshot.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tomoya Hirano": "[email protected]",
        "Koji Murata": "[email protected]"
    },
    "source": {
        "git": "https://github.com/malt03/DebugHead.git",
        "tag": "2.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "DebugHead/Classes/**/*",
    "resource_bundles": {
        "DebugHead": [
            "DebugHead/Assets/*"
        ]
    },
    "dependencies": {
        "BugImageCreator": [
            "~> 1.0.0"
        ]
    },
    "pushed_with_swift_version": "4.0.2"
}

Pin It on Pinterest

Share This