mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-10 15:23:27 +01:00
Supports viewing all NewsItems and StoreApps for a source
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// UINavigationBarAppearance+TintColor.swift
|
||||
// AltStore
|
||||
//
|
||||
// Created by Riley Testut on 4/4/23.
|
||||
// Copyright © 2023 Riley Testut. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
extension UINavigationBarAppearance
|
||||
{
|
||||
func configureWithTintColor(_ tintColor: UIColor)
|
||||
{
|
||||
let buttonAppearance = UIBarButtonItemAppearance(style: .plain)
|
||||
buttonAppearance.normal.titleTextAttributes = [.foregroundColor: tintColor]
|
||||
self.buttonAppearance = buttonAppearance
|
||||
|
||||
let backButtonImage = UIImage(systemName: "chevron.backward")?.withTintColor(tintColor, renderingMode: .alwaysOriginal)
|
||||
self.setBackIndicatorImage(backButtonImage, transitionMaskImage: backButtonImage)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user