Shows source/category icon next to BrowseViewController’s title

Also tints all navigation bar buttons to match source/category tint color.

# Conflicts:
#	AltStore/Browse/BrowseViewController.swift
This commit is contained in:
Riley Testut
2023-12-06 15:36:20 -06:00
committed by Magesh K
parent 29627504cc
commit 703db062e6
3 changed files with 158 additions and 23 deletions

View File

@@ -25,10 +25,24 @@ class AppIconImageView: UIImageView
}
}
override func awakeFromNib()
init(style: Style)
{
super.awakeFromNib()
self.style = style
super.init(image: nil)
self.initialize()
}
required init?(coder: NSCoder)
{
super.init(coder: coder)
self.initialize()
}
private func initialize()
{
self.contentMode = .scaleAspectFill
self.clipsToBounds = true
self.backgroundColor = .white