Browse Source

Added showInfo(...)

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
b765a7300d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      iOSClient/Utility/NCContentPresenter.swift

+ 4 - 0
iOSClient/Utility/NCContentPresenter.swift

@@ -81,6 +81,10 @@ class NCContentPresenter: NSObject {
             priority: priority)
     }
 
+    func showInfo(title: String = "", description: String = "") {
+        self.flatTop(title: NSLocalizedString(title, comment: ""), description: NSLocalizedString(description, comment: ""), delay: NCGlobal.shared.dismissAfterSecond, imageName: nil, type: .info, priority: .normal)
+    }
+
     func showWarning(error: NKError, priority: EKAttributes.Precedence.Priority = .normal) {
         messageNotification(
             "_warning_",