mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
fix crash for missing patreon images
Signed-off-by: Joseph Mattello <mail@joemattiello.com>
This commit is contained in:
@@ -73,13 +73,13 @@ class AboutPatreonHeaderView: UICollectionReusableView
|
|||||||
self.textView.layer.cornerRadius = 20
|
self.textView.layer.cornerRadius = 20
|
||||||
self.textView.textContainer.lineFragmentPadding = 0
|
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.clipsToBounds = true
|
||||||
imageView.layer.cornerRadius = imageView.bounds.midY
|
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.clipsToBounds = true
|
||||||
button.layer.cornerRadius = 16
|
button.layer.cornerRadius = 16
|
||||||
|
|||||||
Reference in New Issue
Block a user