Swiftgram/submodules/LegacyComponents/Sources/TGTextCheckingResult.m
2025-06-18 17:24:21 +02:00

23 lines
673 B
Objective-C

#import <LegacyComponents/TGTextCheckingResult.h>
@implementation TGTextCheckingResult
- (instancetype)initWithRange:(NSRange)range type:(TGTextCheckingResultType)type contents:(NSString *)contents {
return [self initWithRange:range type:type contents:contents value:nil highlightAsLink:false];
}
- (instancetype)initWithRange:(NSRange)range type:(TGTextCheckingResultType)type contents:(NSString *)contents value:(id)value highlightAsLink:(bool)highlightAsLink
{
if (self != nil)
{
_range = range;
_type = type;
_contents = contents;
_value = value;
_highlightAsLink = highlightAsLink;
}
return self;
}
@end