mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Don't use scaledFontForFont.
This commit is contained in:
parent
3ba3f10992
commit
180cbbcdb3
1 changed files with 1 additions and 9 deletions
|
@ -122,15 +122,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
// But this doesn't seem to work in practice on iOS 11 using UIFontWeightMedium.
|
// But this doesn't seem to work in practice on iOS 11 using UIFontWeightMedium.
|
||||||
|
|
||||||
UIFont *derivedFont = [UIFont systemFontOfSize:self.pointSize weight:UIFontWeightMedium];
|
UIFont *derivedFont = [UIFont systemFontOfSize:self.pointSize weight:UIFontWeightMedium];
|
||||||
|
return derivedFont;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue