Skip to content

Commit

Permalink
feat: add recurrenceRule to event
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Jan 11, 2024
1 parent 1765d2f commit 1c94563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/iCalendarParser/Models/ICEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public struct ICEvent: ICComponentable {
//
// See more in [RFC 5545](
// https://www.rfc-editor.org/rfc/rfc5545#section-3.8.5.3)
// var recurrenceRule: ICRule?
public var recurrenceRule: ICRRule?

// var relatedTo: [String]?

Expand Down
1 change: 1 addition & 0 deletions Sources/iCalendarParser/Parser/ICParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public struct ICParser {
event.timeTransparency = component.buildProperty(of: Constant.Property.timeTransparency)
event.url = URL(string: component.buildProperty(of: Constant.Property.url) ?? "")
event.uid = component.buildProperty(of: Constant.Property.uid) ?? ""
event.recurrenceRule = component.buildProperty(of: Constant.Property.recurrenceRule)

event.nonStandardProperties = component.getNonStandardProperties()

Expand Down

0 comments on commit 1c94563

Please sign in to comment.