summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorSajad Vishkai <sajaclvishkai@gmail.com>2022-09-26 12:06:00 +0200
committerAndrej Mihajlov <and@mullvad.net>2022-09-26 16:31:21 +0200
commited4cb2b7ef26d046f641537584af677deb6de264 (patch)
tree002b8272ab309f9a22a41935d487159198e1512c /ios
parent72d2c697d0f70d9bfa1155e5df7e9d39fbcf949a (diff)
downloadmullvadvpn-ed4cb2b7ef26d046f641537584af677deb6de264.tar.xz
mullvadvpn-ed4cb2b7ef26d046f641537584af677deb6de264.zip
Update UIFont+Monospaced.swift
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/UIFont+Monospaced.swift13
1 files changed, 1 insertions, 12 deletions
diff --git a/ios/MullvadVPN/UIFont+Monospaced.swift b/ios/MullvadVPN/UIFont+Monospaced.swift
index 0690070e01..73ff6c51a2 100644
--- a/ios/MullvadVPN/UIFont+Monospaced.swift
+++ b/ios/MullvadVPN/UIFont+Monospaced.swift
@@ -11,17 +11,6 @@ import UIKit
extension UIFont {
class func backport_monospacedSystemFont(ofSize size: CGFloat, weight: UIFont.Weight) -> UIFont
{
- if #available(iOS 13, *) {
- return UIFont.monospacedSystemFont(ofSize: size, weight: weight)
- } else {
- let fontDescriptor = UIFontDescriptor(fontAttributes: [
- .name: "Menlo",
- .traits: [
- UIFontDescriptor.TraitKey.weight: weight,
- ],
- ])
-
- return UIFont(descriptor: fontDescriptor, size: size)
- }
+ UIFont.monospacedSystemFont(ofSize: size, weight: weight)
}
}