From f870046538c54717e5be86c2a059b7985fd315b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20de=20Amorim?= Date: Mon, 4 Sep 2023 11:07:18 -0300 Subject: [PATCH] IOS-7615: Safely access IBOutlets in updateDetailAttributedTextWithLink (cherry picked from commit a5eba733a71b7a4b106bc12e23bc7ade3132a510) --- .../CustomModalAlertViewController+Additions.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iMEGA/Utils/Shared Views/ViewControllers/CustomModalAlert/CustomModalAlertViewController+Additions.swift b/iMEGA/Utils/Shared Views/ViewControllers/CustomModalAlert/CustomModalAlertViewController+Additions.swift index c5b5f0ab64..e2762b2f8a 100644 --- a/iMEGA/Utils/Shared Views/ViewControllers/CustomModalAlert/CustomModalAlertViewController+Additions.swift +++ b/iMEGA/Utils/Shared Views/ViewControllers/CustomModalAlert/CustomModalAlertViewController+Additions.swift @@ -1,7 +1,7 @@ extension CustomModalAlertViewController { @objc func updateDetailAttributedTextWithLink(_ detail: NSAttributedString) { - detailLabel.isHidden = true - detailTextView.isHidden = false - detailTextView.attributedText = detail + detailLabel?.isHidden = true + detailTextView?.isHidden = false + detailTextView?.attributedText = detail } }