diff options
Diffstat (limited to 'Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift')
-rw-r--r-- | Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift index 4dbe97c..71ee6d8 100644 --- a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift +++ b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// Copyright © 2018-2021 WireGuard LLC. All Rights Reserved. +// Copyright © 2018-2023 WireGuard LLC. All Rights Reserved. import UIKit @@ -41,21 +41,13 @@ class TunnelListCell: UITableViewCell { label.font = UIFont.preferredFont(forTextStyle: .caption2) label.adjustsFontForContentSizeCategory = true label.numberOfLines = 1 - if #available(iOS 13.0, *) { - label.textColor = .secondaryLabel - } else { - label.textColor = .gray - } + label.textColor = .secondaryLabel return label }() let busyIndicator: UIActivityIndicatorView = { let busyIndicator: UIActivityIndicatorView - if #available(iOS 13.0, *) { - busyIndicator = UIActivityIndicatorView(style: .medium) - } else { - busyIndicator = UIActivityIndicatorView(style: .gray) - } + busyIndicator = UIActivityIndicatorView(style: .medium) busyIndicator.hidesWhenStopped = true return busyIndicator }() |