fix xcode warning

Signed-off-by: Joseph Mattello <mail@joemattiello.com>
This commit is contained in:
Joseph Mattello
2022-12-17 03:11:22 -05:00
parent 0192f64cd2
commit fdb5e2eebb

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].compactMap { $0 }
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].compactMap { $0 }
for button in [self.supportButton, self.accountButton].compactMap({ $0 })
{
button.clipsToBounds = true
button.layer.cornerRadius = 16