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