mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 17:23:25 +01:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user