Skip to content

xsfish/FSDebugBanner

Repository files navigation

FSDebugBanner

CI Status Version License Platform

A debug banner is at the top right corner of the view.

image image

Requirements

  • iOS8.0+

Installation

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

pod 'FSDebugBanner'

Usage

Objective-C

@import FSDebugBanner;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    [self.window addSubview:[[FSDebugBannerView alloc] initWithText:@"DEBUG"]];
    return YES;
}

swift

import FSDebugBanner

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        window?.addSubview(FSDebugBannerView(text: "DEBUG"))
        return true
    }

Author

xsfish

License

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