-
Notifications
You must be signed in to change notification settings - Fork 7
/
HelperFunctions.h
42 lines (34 loc) · 1.97 KB
/
HelperFunctions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// By: @MrGcGamer
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIView (fconstraints)
-(void)anchorTop:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)top
leading:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)leading
bottom:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)bottom
trailing:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)trailing
padding:(UIEdgeInsets)insets
size:(CGSize)size ;
-(void)anchorTop:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)top
leading:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)leading
bottom:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)bottom
trailing:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)trailing
padding:(UIEdgeInsets)insets ;
-(void)anchorTop:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)top
leading:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)leading
bottom:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)bottom
trailing:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)trailing
size:(CGSize)size ;
-(void)anchorTop:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)top
leading:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)leading
bottom:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)bottom
trailing:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)trailing ;
-(void)anchorCenterX:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)centerX
centerY:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)centerY
size:(CGSize)size ;
-(void)anchorCenterX:(nullable NSLayoutAnchor <NSLayoutXAxisAnchor *> *)centerX
centerY:(nullable NSLayoutAnchor <NSLayoutYAxisAnchor *> *)centerY ;
-(void)anchorEqualsToView:(UIView *)view padding:(UIEdgeInsets)insets ;
-(void)anchorEqualsToView:(UIView *)view ;
@end
FOUNDATION_EXPORT void logToFile(NSString *path, NSString *log);
NS_ASSUME_NONNULL_END