mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
32 lines
809 B
Mathematica
32 lines
809 B
Mathematica
|
// 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
|