EventCalendarInfo

public struct EventCalendarInfo

Contains the event info that is used to add to the calendar.

Subspec: Utility/CalendarPermissionsValidator

EventCalendarInfo(title: title,
                  notes: description,
                  startDate: start,
                  endDate: start.addingTimeInterval(BusinessConstants.defaultEventInterval))

The EventCalendarInfo model is used with the CalendarPermissionsValidator to encapsulate all of the data needed to add a new event.

  • Title of the event.

    Declaration

    Swift

    public let title: String
  • Optional notes to add to the event.

    Declaration

    Swift

    public let notes: String?
  • Start date of the event.

    Declaration

    Swift

    public let startDate: Date
  • End date of the event.

    Declaration

    Swift

    public let endDate: Date
  • Default initializer of the EventCalendarInfo

    Declaration

    Swift

    public init(title: String, notes: String?, startDate: Date, endDate: Date)

    Parameters

    title

    Title of the event.

    notes

    Optional notes to add to the event.

    startDate

    Start date of the event.

    endDate

    End date of the event.