//
//  YMNextGrowingTextView.h
//  PCDBank
//
//  Created by Gusont on 2021/8/20.
//  Copyright © 2021 SLAiELTS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YMNextGrowingInternalTextView.h"

@protocol Delegates <NSObject>

@optional
- (void)willChangeHeight:(CGFloat)height;

- (void)didChangeHeight:(CGFloat)height;
@end

NS_ASSUME_NONNULL_BEGIN

@interface YMNextGrowingTextView : UIScrollView

@property(nullable,nonatomic,weak) id<Delegates> delegates;

@property (nonatomic, assign) NSInteger minNumberOfLines;

@property (nonatomic, assign) NSInteger maxNumberOfLines;

@property (nonatomic, assign) BOOL disableAutomaticScrollToBottom;

@property (nonatomic, assign) BOOL isAutomaticScrollToBottomEnabled;

@property (nonatomic, strong) NSAttributedString *placeholderAttributedText;

@property (nonatomic, strong) UIView *inputView;

//@property (nonatomic, assign) BOOL isFirstResponder;

@property (nonatomic, assign) BOOL becomeFirstResponder;

@property (nonatomic, assign) CGSize intrinsicContentSize;

@property (nonatomic, strong) YMNextGrowingInternalTextView *textView;
@end

NS_ASSUME_NONNULL_END
