Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Code/Views/ATLMessageComposeTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,17 @@ - (id)init
self = [super init];
if (self) {

self.attributedText = [[NSAttributedString alloc] initWithString:@"" attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:17],
NSForegroundColorAttributeName : ATLGrayColor()}];
NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new];
paragraphStyle.minimumLineHeight = 30;
paragraphStyle.maximumLineHeight = 30;

NSDictionary *attributes = @{
NSFontAttributeName : [UIFont systemFontOfSize:17],
NSParagraphStyleAttributeName: paragraphStyle,
NSForegroundColorAttributeName : ATLGrayColor()
};

self.attributedText = [[NSAttributedString alloc] initWithString:@"" attributes: attributes];
self.textContainerInset = UIEdgeInsetsMake(8, 10, 8, 10);
self.font = [UIFont systemFontOfSize:17];
self.dataDetectorTypes = UIDataDetectorTypeLink;
Expand Down