session-ios/Signal/src/views/JSQMessagesCollectionViewCell+OWS.m

32 lines
809 B
Mathematica
Raw Normal View History

// Created by Michael Kirk on 11/13/16.
// Copyright © 2016 Open Whisper Systems. All rights reserved.
#import "JSQMessagesCollectionViewCell+OWS.h"
#import "UIColor+OWS.h"
NS_ASSUME_NONNULL_BEGIN
@implementation JSQMessagesCollectionViewCell (OWS)
- (UIColor *)ows_textColor
{
return [UIColor ows_blackColor];
}
- (void)ows_didLoad
{
self.textView.textColor = self.ows_textColor;
self.textView.linkTextAttributes = @{
NSForegroundColorAttributeName : self.ows_textColor,
NSUnderlineStyleAttributeName : @(NSUnderlineStyleSingle | NSUnderlinePatternSolid)
};
self.textView.dataDetectorTypes
= (UIDataDetectorTypePhoneNumber | UIDataDetectorTypeLink | UIDataDetectorTypeAddress
| UIDataDetectorTypeCalendarEvent);
}
@end
NS_ASSUME_NONNULL_END