Files
peko-ios/YuMi/CustomUI/TTPopup/Config/TTAlertMessageAttributedConfig.h
2023-07-14 18:50:55 +08:00

35 lines
820 B
Objective-C

//
// TTAlertContentAttributedConfig.h
// YM_TTChatViewKit
//
// Created by lee on 2019/5/21.
// Copyright © 2023 YUMI. All rights reserved.
// alert 提示内容富文本配置
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface TTAlertMessageAttributedConfig : NSObject
/** 富文本字段需要特殊显示的文本 */
@property (nonatomic, copy) NSString *text;
/** 颜色 */
@property (nonatomic, strong) UIColor *color;
/** 字体 */
@property (nonatomic, strong) UIFont *font;
/**
目标文本指定位置,一旦设置则无视 text 的值
@discussion 内容文本中出现相同的目标文本时,可通过设置 range 精确指定位置
*/
@property (nonatomic, assign) NSRange range;
@end
NS_ASSUME_NONNULL_END