Skip to content

qkzhu/FPSLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FPSLabel

Version License Platform

A tiny library provides a draggble label that display FPS.

Installation

  1. Run pod repo update to make CocoaPods aware of the latest available FPSLabel versions.
  2. In your Podfile, add pod 'FPSLabel' to your main and test targets.
  3. From the command line, run pod install.

How to use

From AppDelegate, inside didFinishLaunchingWithOptions

  • Objective-C:
#import <FPSLabel/FPSLabel.h>

[FPSLabel installOnWindow:self.window]; 
  • Swift:
import FPSLabel

FPSLabel.install(on: self.window) 

Demo

Image

Reference