Allows viewing unsupported updates from My Apps tab

When unsupported updates are available, the “No Updates Available” text becomes “Unsupported Updates Available”, and a button is revealed that will list all unsupported updates in an alert when tapped.
This commit is contained in:
Riley Testut
2022-11-16 15:42:26 -06:00
parent 1cfd83bbb7
commit e8b0fa3c6d
5 changed files with 322 additions and 22 deletions

View File

@@ -64,12 +64,30 @@ class InstalledAppsCollectionFooterView: UICollectionReusableView
class NoUpdatesCollectionViewCell: UICollectionViewCell
{
@IBOutlet var blurView: UIVisualEffectView!
@IBOutlet var textLabel: UILabel!
@IBOutlet var button: UIButton!
override func awakeFromNib()
{
super.awakeFromNib()
self.contentView.preservesSuperviewLayoutMargins = true
let image: UIImage?
if #available(iOS 13, *)
{
let font = self.textLabel.font ?? UIFont.systemFont(ofSize: 17)
let configuration = UIImage.SymbolConfiguration(font: font)
image = UIImage(systemName: "ellipsis.circle", withConfiguration: configuration)
}
else
{
image = UIImage(named: "ellipsis.circle")
}
self.button.setTitle("", for: .normal)
self.button.setImage(image, for: .normal)
}
}