     
 }
 
+/**
+ Add NotificationType protocol conformance to String.
+ Provides self as its text and always nil as its subtext.
+ */
 extension String: NotificationType {
     
     public var text: String {


import Foundation

/// A type can be notified to user.
public protocol NotificationType {
    
    /// Main text.

    
}

/**
 Notification is a predefined notification type.
 A notification is initialized with and stores text and subtext.
 */
public struct Notification: NotificationType {
    
    public init(text: String, subtext: String? = nil) {
