71 lines
1.7 KiB
Objective-C
71 lines
1.7 KiB
Objective-C
|
|
|
|
// Created by lee on 2019/5/20.
|
|
// Copyright © 2023 YUMI. All rights reserved.
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import "TTAlertButtonConfig.h"
|
|
#import "TTAlertMessageAttributedConfig.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSUInteger, TTAlertActionStyle) {
|
|
TTAlertActionConfirmStyle = 0,
|
|
TTAlertActionCancelStyle = 1,
|
|
TTAlertActionBothStyle = 2,
|
|
};
|
|
|
|
|
|
@interface TTAlertConfig : NSObject
|
|
|
|
@property (nonatomic, assign) TTAlertActionStyle actionStyle;
|
|
|
|
@property (nonatomic, strong) UIColor *backgroundColor;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *title;
|
|
@property (nonatomic, strong) UIFont *titleFont;
|
|
@property (nonatomic, strong) UIColor *titleColor;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *message;
|
|
@property (nonatomic, strong) UIFont *messageFont;
|
|
@property (nonatomic, strong) UIColor *messageColor;
|
|
|
|
@property (nonatomic, assign) CGFloat messageLineSpacing;
|
|
@property(nonatomic, assign) NSTextAlignment messageTextAlignment;
|
|
|
|
@property (nonatomic, strong) NSArray<TTAlertMessageAttributedConfig *> *messageAttributedConfig;
|
|
|
|
@property (nonatomic,strong) NSMutableAttributedString *messageAttributed;
|
|
|
|
|
|
@property (nonatomic, strong) TTAlertButtonConfig *cancelButtonConfig;
|
|
|
|
|
|
@property (nonatomic, strong) TTAlertButtonConfig *confirmButtonConfig;
|
|
|
|
|
|
@property (nonatomic, assign) CGFloat maskBackgroundAlpha;
|
|
|
|
|
|
@property (nonatomic, assign) CGFloat cornerRadius;
|
|
|
|
|
|
@property (nonatomic, assign) BOOL shouldDismissOnBackgroundTouch;
|
|
|
|
|
|
@property (nonatomic, assign) BOOL disableAutoDismissWhenClickButton;
|
|
|
|
|
|
@property (nonatomic, assign) BOOL shouldFilterPopup;
|
|
|
|
|
|
@property (nonatomic, copy) NSString *filterIdentifier;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|