cdts/xdts-ios 3/TreeHole/CYHResetCode/CYH/QMUIKit/QMUIComponents/ToastView/QMUIToastContentView.h

87 lines
3.3 KiB
C
Raw Normal View History

2023-07-27 09:20:00 +08:00
/**
* Tencent is pleased to support the open source community by making QMUI_iOS available.
* Copyright (C) 2016-2021 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
//
// QMUIToastContentView.h
// qmui
//
// Created by QMUI Team on 2016/12/11.
//
#import <UIKit/UIKit.h>
/**
* `QMUIToastView`使contentViewcustomView->textLabel->detailTextLabel等三个view依次往下排列customView可以赋值任意的UIView或者自定义的view
* customView tintColor textLabel/detailTextLabel attributes tintColor attributes 使 attributes
*
* @TODO: progressView的支持
*/
@interface QMUIToastContentView : UIView
/**
* UIView customView size
*/
@property(nonatomic, strong) UIView *customView;
/**
* label
*/
@property(nonatomic, strong, readonly) UILabel *textLabel;
/**
* textLabelText设置可以应用textLabelAttributes的样式textLabel.text设置则可能导致一些样式失效
*/
@property(nonatomic, copy) NSString *textLabelText;
/**
* label
*/
@property(nonatomic, strong, readonly) UILabel *detailTextLabel;
/**
* detailTextLabelText设置可以应用detailTextLabelAttributes的样式detailTextLabel.text设置则可能导致一些样式失效
*/
@property(nonatomic, copy) NSString *detailTextLabelText;
/**
* padding
*/
@property(nonatomic, assign) UIEdgeInsets insets UI_APPEARANCE_SELECTOR;
/**
* size
*/
@property(nonatomic, assign) CGSize minimumSize UI_APPEARANCE_SELECTOR;
/**
* customView的marginBottom
*/
@property(nonatomic, assign) CGFloat customViewMarginBottom UI_APPEARANCE_SELECTOR;
/**
* textLabel的marginBottom
*/
@property(nonatomic, assign) CGFloat textLabelMarginBottom UI_APPEARANCE_SELECTOR;
/**
* detailTextLabel的marginBottom
*/
@property(nonatomic, assign) CGFloat detailTextLabelMarginBottom UI_APPEARANCE_SELECTOR;
/**
* textLabel的attributes NSForegroundColorAttributeName textLabel tintColor textLabel tintColor
*/
@property(nonatomic, strong) NSDictionary <NSString *, id> *textLabelAttributes UI_APPEARANCE_SELECTOR;
/**
* detailTextLabel attributes NSForegroundColorAttributeName detailTextLabel tintColor detailTextLabel tintColor
*/
@property(nonatomic, strong) NSDictionary <NSString *, id> *detailTextLabelAttributes UI_APPEARANCE_SELECTOR;
@end