summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/HeaderBarView.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/HeaderBarView.swift b/ios/MullvadVPN/HeaderBarView.swift
index da5b1c41b6..e7527f2f18 100644
--- a/ios/MullvadVPN/HeaderBarView.swift
+++ b/ios/MullvadVPN/HeaderBarView.swift
@@ -10,7 +10,7 @@ import Foundation
import UIKit
class HeaderBarView: UIView {
- private let brandNameImage = UIImage(named: "LogoText")!
+ private let brandNameImage = UIImage(named: "LogoText")?
.backport_withTintColor(UIColor.HeaderBar.brandNameColor, renderingMode: .alwaysOriginal)
let logoImageView: UIImageView = {
@@ -75,7 +75,7 @@ class HeaderBarView: UIView {
accessibilityContainerType = .semanticGroup
}
- let imageSize = brandNameImage.size
+ let imageSize = brandNameImage?.size ?? .zero
let brandNameAspectRatio = imageSize.width / max(imageSize.height, 1)
let constraints = [