KNContactsSchedule
public struct KNContactsScheduleA collection of contact identifier strings grouped by a time format to create contact schedules. Can be used for persisting the IDs to a store or to User Defaults.
Version
1.0.0- 
                  
                  The name of the schedule DeclarationSwift public let name: String
- 
                  
                  The time format to save the schedule in DeclarationSwift public let format: KNDateTimeFormat
- 
                  
                  Initialises a KNContactSchedulewith a name and time format.Version 1.0.0 DeclarationSwift public init(name: String, format: KNDateTimeFormat = .fullDate)ParametersnameThe name of the contact schedule. formatThe KNTimeFormatvalue to be used for grouping the contact identifiers by and later be retrieved. Optional. Defaults toKNTimeFormat.fullDate
- 
                  
                  Adds multiple contact identifers to the schedule for a particular day passed as Date type. Version 1.0.0 DeclarationSwift public mutating mutating func add(list: [String], to day: Date)ParameterslistAn array of strings representing contact identifiers. Required. toThe Date value to be used for grouping the contact identifiers by and later be retrieved. 
- 
                  
                  Adds multiple contact identifers to the schedule for a particular day passed as a String type. The string representing a datetime format will be parsed and if invalid, the method will return without adding the identifiers to the schedule. Version 1.1.0 DeclarationSwift public mutating mutating func add(list: [String], to day: String)ParameterslistAn array of strings representing contact identifiers. Required. fromStringA string value representing a valid date format to be used for grouping the contact identifiers by and later be retrieved. 
- 
                  
                  Retrieves the whole schedule. Version 1.0.0DeclarationSwift public func getSchedule() -> [String : [String]]Return ValueA dictionary of date strings, each holding the schedule of contacts as an array of contact identifers for that date. 
- 
                  
                  Retrieves the schedule for a particular day Version 1.0.0 DeclarationSwift public func getSchedule(for day: Date) -> [String]ParametersdayA Date representing the day for which day to retrieve the schedule for. Return ValueThe schedule of contacts as an array of contact identifiers strings for the specified date. 
- 
                  
                  Retrieves the schedule for the current day. Version 1.0.0DeclarationSwift public func scheduleForToday() -> [String]Return ValueThe schedule of contacts as an array of contact identifiers strings for the current date. 
- 
                  
                  Resets the schedule by invalidating the stored schedule collection. Version 1.0.0DeclarationSwift public mutating mutating func reset()
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           KNContactsSchedule Structure Reference
      KNContactsSchedule Structure Reference