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
titleTitle of the event.
notesOptional notes to add to the event.
startDateStart date of the event.
endDateEnd date of the event.
EventCalendarInfo Structure Reference