62 lines
1.4 KiB
Objective-C
62 lines
1.4 KiB
Objective-C
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2020 Vector Creations Ltd
|
|
Copyright 2014 OpenMarket Ltd
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
/**
|
|
Section header view class. Respects left and right safe area insets and layouts its subviews.
|
|
*/
|
|
@interface SectionHeaderView : UITableViewHeaderFooterView
|
|
|
|
/**
|
|
Default value: 20.0
|
|
*/
|
|
@property (nonatomic, assign) CGFloat minimumLeftInset;
|
|
|
|
/**
|
|
Default value: 16.0
|
|
*/
|
|
@property (nonatomic, assign) CGFloat minimumRightInset;
|
|
|
|
/**
|
|
Default value: 30.0
|
|
*/
|
|
@property (nonatomic, assign) CGFloat topViewHeight;
|
|
|
|
@property (nonatomic, assign) CGFloat topPadding;
|
|
|
|
/**
|
|
A view which spans the top view. No frame value will be used. Height will be equal to topViewHeight.
|
|
*/
|
|
@property (nonatomic, strong) UIView *topSpanningView;
|
|
|
|
/**
|
|
Header label. Only height in frame will be used.
|
|
*/
|
|
@property (nonatomic, strong) UILabel *headerLabel;
|
|
|
|
/**
|
|
Accessory view for top view. Both width and height will be used.
|
|
*/
|
|
@property (nonatomic, strong) UIView *accessoryView;
|
|
|
|
/**
|
|
Right accessory view for header. Both width and height will be used.
|
|
*/
|
|
@property (nonatomic, strong) UIView *rightAccessoryView;
|
|
|
|
/**
|
|
A view which spans the bottom view. No frame value will be used. Height will be remaining of the view at below topViewHeight.
|
|
*/
|
|
@property (nonatomic, strong) UIView *bottomView;
|
|
|
|
+ (NSString*)defaultReuseIdentifier;
|
|
|
|
@end
|