12345678910111213141516171819202122232425 |
- //
- // NSMutableAttributedString+RYText.h
- // Asteria
- //
- // Created by 王猛 on 2024/1/6.
- //
- #import <Foundation/Foundation.h>
- #import <CoreText/CoreText.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface NSMutableAttributedString (RYText)
- @property (nullable, nonatomic, strong, readwrite) UIFont *font;
- - (void)setFont:(nullable UIFont *)font range:(NSRange)range;
- @property (nullable, nonatomic, strong, readwrite) UIColor *color;
- - (void)setColor:(nullable UIColor *)color range:(NSRange)range;
- @property (nonatomic, readwrite) NSUnderlineStyle underlineStyle;
- - (void)setUnderlineStyle:(NSUnderlineStyle)underlineStyle range:(NSRange)range;
- @end
- NS_ASSUME_NONNULL_END
|