From 180cbbcdb372f3ff03505a10906e66de739b264f Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 9 Apr 2018 16:27:05 -0400 Subject: [PATCH] Don't use scaledFontForFont. --- SignalMessaging/categories/UIFont+OWS.m | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/SignalMessaging/categories/UIFont+OWS.m b/SignalMessaging/categories/UIFont+OWS.m index a7f48e761..fe67bbd87 100644 --- a/SignalMessaging/categories/UIFont+OWS.m +++ b/SignalMessaging/categories/UIFont+OWS.m @@ -122,15 +122,7 @@ NS_ASSUME_NONNULL_BEGIN // But this doesn't seem to work in practice on iOS 11 using UIFontWeightMedium. UIFont *derivedFont = [UIFont systemFontOfSize:self.pointSize weight:UIFontWeightMedium]; - - if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(11, 0)) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wpartial-availability" - return [[UIFontMetrics defaultMetrics] scaledFontForFont:derivedFont]; -#pragma clang diagnostic pop - } else { - return derivedFont; - } + return derivedFont; } @end