Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e637df

Browse files
author
Ignacio Romero Zurbuchen
committed
Missing method update
1 parent d36fe76 commit 5e637df

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Examples/Messenger-Shared/MessageTableViewCell.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "MessageTableViewCell.h"
10-
#import "SLKTextView+SLKAdditions.h"
10+
#import "SLKUIConstants.h"
1111

1212
@implementation MessageTableViewCell
1313

@@ -117,7 +117,7 @@ + (CGFloat)defaultFontSize
117117
CGFloat pointSize = 16.0;
118118

119119
NSString *contentSizeCategory = [[UIApplication sharedApplication] preferredContentSizeCategory];
120-
pointSize += [SLKTextView pointSizeDifferenceForCategory:contentSizeCategory];
120+
pointSize += SLKPointSizeDifferenceForCategory(contentSizeCategory);
121121

122122
return pointSize;
123123
}

Source/SLKUIConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ inline static CGRect SLKRectInvert(CGRect rect)
5555
@param category A content size category constant string.
5656
@returns A float constant font size difference.
5757
*/
58-
CGFloat SLKPointSizeDifferenceForCategory(NSString *category)
58+
inline CGFloat SLKPointSizeDifferenceForCategory(NSString *category)
5959
{
6060
if ([category isEqualToString:UIContentSizeCategoryExtraSmall]) return -3.0;
6161
if ([category isEqualToString:UIContentSizeCategorySmall]) return -2.0;

0 commit comments

Comments
 (0)