Skip to content

Commit 64b11fe

Browse files
authored
Create CGExt.h
1 parent 350866e commit 64b11fe

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

CGExt.h

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// CGExt.h
3+
// Kho
4+
//
5+
// Created by iOSDec on 08/02/2018.
6+
// Copyright © 2018 iosdec. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
#import <Foundation/Foundation.h>
11+
12+
@interface UIView (CGExt)
13+
14+
- (void)sameRectWithNewX:(CGFloat)x;
15+
- (void)sameRectWithNewX:(CGFloat)x y:(CGFloat)y;
16+
- (void)sameRectWithNewY:(CGFloat)y;
17+
- (void)sameRectWithNewWidth:(CGFloat)width;
18+
- (void)sameRectWithNewHeight:(CGFloat)height;
19+
- (void)sameRectWithNewHeight:(CGFloat)height y:(CGFloat)y;
20+
- (void)sameRectWithView:(UIView *)view;
21+
- (void)sameRectWithNewWidth:(CGFloat)width height:(CGFloat)height;
22+
- (void)sameRectWithNewWidth:(CGFloat)width height:(CGFloat)height y:(CGFloat)y;
23+
24+
@end
25+
26+
@interface CGeometry : NSObject
27+
28+
+ (CGFloat)findHeightForText:(NSString *)text havingWidth:(CGFloat)widthValue andFont:(UIFont *)font;
29+
+ (CGFloat)recalculatedViewHeight:(UIView *)view label:(UILabel *)label minHeight:(CGFloat)min;
30+
+ (CGFloat)recalculatedViewHeight:(UIView *)view textView:(UITextView *)label minHeight:(CGFloat)min;
31+
32+
@end

0 commit comments

Comments
 (0)