     
     // MARK: - Static notification types
     
-    public static let success: InAppNotificationType = InAppNotificationTypeDefinition(textColor: UIColor.white, backgroundColor: UIColor.flatGreen, image: UIImage(named: "success", in: Bundle(for: InAppNotifications.self), compatibleWith: nil))
-    public static let error: InAppNotificationType = InAppNotificationTypeDefinition(textColor: UIColor.white, backgroundColor: UIColor.flatRed, image: UIImage(named: "error", in: Bundle(for: InAppNotifications.self), compatibleWith: nil))
-    public static let info: InAppNotificationType = InAppNotificationTypeDefinition(textColor: UIColor.white, backgroundColor: UIColor.flatGray, image: UIImage(named: "info", in: Bundle(for: InAppNotifications.self), compatibleWith: nil))
+    public static let success: InAppNotificationType = InAppNotificationTypeDefinition(backgroundColor: UIColor.flatGreen, image: UIImage(named: "success", in: Bundle(for: InAppNotifications.self), compatibleWith: nil))
+    public static let error: InAppNotificationType = InAppNotificationTypeDefinition(backgroundColor: UIColor.flatRed, image: UIImage(named: "error", in: Bundle(for: InAppNotifications.self), compatibleWith: nil))
+    public static let info: InAppNotificationType = InAppNotificationTypeDefinition(backgroundColor: UIColor.flatGray, image: UIImage(named: "info", in: Bundle(for: InAppNotifications.self), compatibleWith: nil))
 
     
     // MARK: - Init

    // MARK: - Helpers
    
    /** Shows a CRNotification **/
    public static func showNotification(textColor: UIColor, backgroundColor: UIColor, image: UIImage?, title: String, message: String?, dismissDelay: TimeInterval, completion: @escaping () -> () = {}) {
        let notificationDefinition = InAppNotificationTypeDefinition(textColor: textColor, backgroundColor: backgroundColor, image: image)
        showNotification(type: notificationDefinition, title: title, message: message, dismissDelay: dismissDelay, completion: completion)
    }
    
    /** Shows a CRNotification from a InAppNotificationType **/
    public static func showNotification(type: InAppNotificationType, title: String, message: String?, dismissDelay: TimeInterval, completion: @escaping () -> () = {}) {
        let view = InAppNotificationView()
        
        view.setBackgroundColor(color: type.backgroundColor)
        view.setTextColor(color: type.textColor)
        view.setImage(image: type.image)
        view.setTitle(title: title)
        view.setMessage(message: message)

import UIKit

public protocol InAppNotificationType {
    var backgroundColor: UIColor { get }
    var image: UIImage? { get }
}
