From 63612b2fb06ed505734542313f55d034203b35c1 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 7 May 2023 16:35:01 -0400 Subject: [PATCH] Make notification cells subclasses of UICollectionViewListCell --- .../ActionNotificationGroupCollectionViewCell.swift | 2 +- .../FollowNotificationGroupCollectionViewCell.swift | 2 +- .../FollowRequestNotificationCollectionViewCell.swift | 2 +- .../PollFinishedNotificationCollectionViewCell.swift | 2 +- .../StatusUpdatedNotificationCollectionViewCell.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift b/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift index d84958d6..9c117db0 100644 --- a/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift +++ b/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift @@ -10,7 +10,7 @@ import UIKit import Pachyderm import SwiftSoup -class ActionNotificationGroupCollectionViewCell: UICollectionViewCell { +class ActionNotificationGroupCollectionViewCell: UICollectionViewListCell { private let iconView = UIImageView().configure { $0.tintColor = UIColor(red: 1, green: 204/255, blue: 0, alpha: 1) diff --git a/Tusker/Screens/Notifications/FollowNotificationGroupCollectionViewCell.swift b/Tusker/Screens/Notifications/FollowNotificationGroupCollectionViewCell.swift index 00e4503b..dfae5509 100644 --- a/Tusker/Screens/Notifications/FollowNotificationGroupCollectionViewCell.swift +++ b/Tusker/Screens/Notifications/FollowNotificationGroupCollectionViewCell.swift @@ -9,7 +9,7 @@ import UIKit import Pachyderm -class FollowNotificationGroupCollectionViewCell: UICollectionViewCell { +class FollowNotificationGroupCollectionViewCell: UICollectionViewListCell { private let iconView = UIImageView(image: UIImage(systemName: "person.fill.badge.plus")).configure { $0.contentMode = .scaleAspectFit diff --git a/Tusker/Screens/Notifications/FollowRequestNotificationCollectionViewCell.swift b/Tusker/Screens/Notifications/FollowRequestNotificationCollectionViewCell.swift index 286e5746..bc5ea80f 100644 --- a/Tusker/Screens/Notifications/FollowRequestNotificationCollectionViewCell.swift +++ b/Tusker/Screens/Notifications/FollowRequestNotificationCollectionViewCell.swift @@ -9,7 +9,7 @@ import UIKit import Pachyderm -class FollowRequestNotificationCollectionViewCell: UICollectionViewCell { +class FollowRequestNotificationCollectionViewCell: UICollectionViewListCell { private let iconView = UIImageView(image: UIImage(systemName: "person.fill")).configure { $0.contentMode = .scaleAspectFit diff --git a/Tusker/Screens/Notifications/PollFinishedNotificationCollectionViewCell.swift b/Tusker/Screens/Notifications/PollFinishedNotificationCollectionViewCell.swift index 41ab1ef5..e2ace13a 100644 --- a/Tusker/Screens/Notifications/PollFinishedNotificationCollectionViewCell.swift +++ b/Tusker/Screens/Notifications/PollFinishedNotificationCollectionViewCell.swift @@ -10,7 +10,7 @@ import UIKit import Pachyderm import SwiftSoup -class PollFinishedNotificationCollectionViewCell: UICollectionViewCell { +class PollFinishedNotificationCollectionViewCell: UICollectionViewListCell { private let iconView = UIImageView(image: UIImage(systemName: "checkmark.square.fill")).configure { $0.contentMode = .scaleAspectFit diff --git a/Tusker/Screens/Notifications/StatusUpdatedNotificationCollectionViewCell.swift b/Tusker/Screens/Notifications/StatusUpdatedNotificationCollectionViewCell.swift index 873931e7..42d27395 100644 --- a/Tusker/Screens/Notifications/StatusUpdatedNotificationCollectionViewCell.swift +++ b/Tusker/Screens/Notifications/StatusUpdatedNotificationCollectionViewCell.swift @@ -10,7 +10,7 @@ import UIKit import Pachyderm import SwiftSoup -class StatusUpdatedNotificationCollectionViewCell: UICollectionViewCell { +class StatusUpdatedNotificationCollectionViewCell: UICollectionViewListCell { private let iconView = UIImageView(image: UIImage(systemName: "pencil")).configure { $0.contentMode = .scaleAspectFit