-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathUIView+Barefoot.h
More file actions
18 lines (17 loc) · 888 Bytes
/
UIView+Barefoot.h
File metadata and controls
18 lines (17 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface UIView (Barefoot)
- (CGSize)subviewBounds;
- (void)addSubviewAtBottom:(UIView *)view;
- (void)addSubviewAtRight:(UIView *)view;
- (void)addSubviewAtBottom:(UIView *)view withPadding:(size_t)padding;
- (void)addSubviewAtRight:(UIView *)view withPadding:(size_t)padding;
- (void)addSubview:(UIView *)view atRightOf:(UIView *)otherView;
- (void)addSubview:(UIView *)view atRightOf:(UIView *)otherView withOffset:(size_t)offset;
- (void)insertSubview:(UIView *)view beneath:(UIView *)otherView;
- (void)insertSubview:(UIView *)view beneath:(UIView *)otherView withTopOffset:(CGFloat)topOffset bottomOffset:(CGFloat)bottomOffset;
- (void)sizeToFitWithPadding:(CGSize)padding;
- (void)sizeToFitWithPadding:(CGSize)padding withMinimumSize:(CGSize)minSize;
- (void)sizeHeightToFitWithPadding:(size_t)h;
- (void)describe;
@end