//
//  HWMTextView.h
//  HWMUISDKNativeDemo
//
//  Created by z30074171 on 2025/2/8.
//  Copyright © 2025 Huawei Technologies Co. Ltd. All rights reserved.
//

#import <Cocoa/Cocoa.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^TextDidChangeBlock)(NSString *text);

@interface HWMTextView : NSView
@property (nonatomic, strong) NSTextView *textView;
@property (nonatomic, copy) NSString *placeholderString;
@property (nonatomic, strong) NSColor *placeholderColor;
@property (nonatomic, strong) NSFont *placeholderFont;
@property (nonatomic, copy) TextDidChangeBlock textDidChangeBlock;
- (void)setPlaceholderString:(NSString *)string font:(NSFont *)font color:(NSColor *)color;
@end

NS_ASSUME_NONNULL_END
