Browse Source

use loadImage for Appreance

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 years ago
parent
commit
e44e058cf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Menu/UIViewController+Menu.swift

+ 1 - 1
iOSClient/Menu/UIViewController+Menu.swift

@@ -72,7 +72,7 @@ extension UIViewController {
                 action: nil)
                 action: nil)
 
 
             let actions = card.actions.map { action -> NCMenuAction in
             let actions = card.actions.map { action -> NCMenuAction in
-                var image = UIImage(named: "user") ?? UIImage()
+                var image = NCUtility.shared.loadImage(named: "user", color: NCBrandColor.shared.label)
                 if let url = URL(string: action.icon),
                 if let url = URL(string: action.icon),
                    let svgSource = SVGKSourceURL.source(from: url),
                    let svgSource = SVGKSourceURL.source(from: url),
                    let svg = SVGKImage(source: svgSource) {
                    let svg = SVGKImage(source: svgSource) {