Skip to content

RachalZhou/CCSize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCSize

cover

Version Platform

  • Support Swift & Objective-C
  • Support full screen iPhone like iPhone X

Example

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

Requirements

  • iOS10+
  • Swift5+

Installation

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

pod 'CCSize'

Useage

  • Swift
import CCSize

print(Screen.width)
print(StatusBar.height)
print(Tabbar.height)
  • Objective-C
#import <CCSize.h>

NSLog(@"%.2f", ScreenHeight);
NSLog(@"%.2f", StatusBarHeight);
NSLog(@"%.2f", TabBarHeight);

See detail usage in the example project.

Author

RachalZhou, zrcrachal@gmail.com

License

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