Skip to content

Commit

Permalink
Merge pull request #4 from hannojg/feat/add-rrule-to-event
Browse files Browse the repository at this point in the history
feat: add recurrenceRule to event
  • Loading branch information
redryerye authored Jan 16, 2024
2 parents 1765d2f + 1c94563 commit f87378c
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 f87378c

Please sign in to comment.