Shows detailed source “About” page when adding 3rd-party sources

Allows users to preview sources before adding them to their AltStore.
This commit is contained in:
Riley Testut
2023-04-04 15:41:44 -05:00
committed by Magesh K
parent 5145e355ce
commit 654f73f4ee
12 changed files with 1718 additions and 31 deletions

View File

@@ -85,10 +85,27 @@ final class PillButton: UIButton
self.displayLink.remove(from: .main, forMode: RunLoop.Mode.default)
}
override init(frame: CGRect)
{
super.init(frame: frame)
self.initialize()
}
required init?(coder: NSCoder)
{
super.init(coder: coder)
}
override func awakeFromNib()
{
super.awakeFromNib()
self.initialize()
}
private func initialize()
{
self.layer.masksToBounds = true
self.accessibilityTraits.formUnion([.updatesFrequently, .button])
@@ -153,6 +170,9 @@ private extension PillButton
}
self.progressView.progressTintColor = self.tintColor
// Update font after init because the original titleLabel is replaced.
self.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14)
}
@objc func updateCountdown()