MMKSpannableString

@interface MMKSpannableString : NSObject

A string that supports spans in it.

Summary

Class methods

+ (nonnull MMKSpannableString *)spannableStringWithText:(nonnull NSString *)text
                                                  spans:(nonnull NSArray<MMKSpannableStringSpan *> *)spans;

Properties

@property (nonatomic, readonly, nonnull) NSString *text;
The text of the spannable string

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSpannableStringSpan *> *spans;

The spans in stored text

Class methods

spannableStringWithText:spans:

+ (nonnull MMKSpannableString *)spannableStringWithText:(nonnull NSString *)text
                                                  spans:(nonnull NSArray<MMKSpannableStringSpan *> *)spans;


Properties

text

@property (nonatomic, readonly, nonnull) NSString *text;

The text of the spannable string.


spans

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSpannableStringSpan *> *spans;

The spans in stored text.