Latest 2.3.0
License MIT
Platforms ios 11.0
Dependencies BugImageCreator
Authors ,

Carthage compatible


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.


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



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


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

pod "DebugHead"



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

Latest podspec

    "name": "DebugHead",
    "version": "2.3.0",
    "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": "",
    "screenshots": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Tomoya Hirano": "[email protected]",
        "Koji Murata": "[email protected]"
    "source": {
        "git": "",
        "tag": "2.3.0"
    "platforms": {
        "ios": "11.0"
    "swift_version": "5.0",
    "source_files": "DebugHead/Classes/**/*",
    "resource_bundles": {
        "DebugHead": [
    "dependencies": {
        "BugImageCreator": [
            "~> 1.0.0"

Pin It on Pinterest

Share This