From 193298ac873d2d22baf8bbaf679bc966d04271bc Mon Sep 17 00:00:00 2001 From: Joseph Mattello Date: Sat, 17 Dec 2022 03:10:28 -0500 Subject: [PATCH] fix crash for missing patreon images Signed-off-by: Joseph Mattello --- AltStore/Settings/PatreonComponents.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AltStore/Settings/PatreonComponents.swift b/AltStore/Settings/PatreonComponents.swift index 2354d4c6..c61ff58a 100644 --- a/AltStore/Settings/PatreonComponents.swift +++ b/AltStore/Settings/PatreonComponents.swift @@ -73,13 +73,13 @@ class AboutPatreonHeaderView: UICollectionReusableView self.textView.layer.cornerRadius = 20 self.textView.textContainer.lineFragmentPadding = 0 - for imageView in [self.rileyImageView!, self.shaneImageView!] + for imageView in [self.rileyImageView, self.shaneImageView].compactMap { $0 } { imageView.clipsToBounds = true imageView.layer.cornerRadius = imageView.bounds.midY } - for button in [self.supportButton!, self.accountButton!] + for button in [self.supportButton, self.accountButton].compactMap { $0 } { button.clipsToBounds = true button.layer.cornerRadius = 16