RSDWeeklyScheduleFormatter

public class RSDWeeklyScheduleFormatter : Formatter

RSDWeeklyScheduleFormatter can be used to display formatted text for a weekly schedule item.

  • The style of the display text for a weekly schedule item.

    • example:
      • long: Thursday, Friday, and Saturday at 4:00 PM and 7:00 PM
      • medium: 4:00 PM, 7:30 PM\n Thursday, Friday, Saturday
      • short: 4:00 PM, 7:30 PM, Thu, Fri, Sat

    Declaration

    Swift

    public var style: DateFormatter.Style! { get set }
  • Formatted string for a weekly schedule item.

    Declaration

    Swift

    public func string(from weeklySchedule: RSDWeeklyScheduleObject) -> String?
  • Formatted string for an array of weekly schedule items.

    Declaration

    Swift

    public func string(from weeklySchedules: [RSDWeeklyScheduleObject]) -> String?
  • Formatted string from a set of integers for each weekday.

    Declaration

    Swift

    public func string(from days: Set<Int>) -> String?
  • Formatted string from a set of weekday objects.

    Declaration

    Swift

    public func string(from daysOfWeek: Set<RSDWeekday>) -> String?
  • Override to provide generic formatter for formatting a string.

    Declaration

    Swift

    override public func string(for obj: Any?) -> String?