fix crash for missing patreon images

Signed-off-by: Joseph Mattello <mail@joemattiello.com>
This commit is contained in:
Joseph Mattello
2022-12-17 03:10:28 -05:00
parent a81cb81799
commit 193298ac87

View File

@@ -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