- Support Swift & Objective-C
- Support full screen iPhone like iPhone X
To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS10+
- Swift5+
CCSize is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CCSize'
- 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.
RachalZhou, zrcrachal@gmail.com
CCSize is available under the MIT license. See the LICENSE file for more info.