diff --git a/Sources/iCalendarParser/Models/ICEvent.swift b/Sources/iCalendarParser/Models/ICEvent.swift index 102123b..6167af9 100644 --- a/Sources/iCalendarParser/Models/ICEvent.swift +++ b/Sources/iCalendarParser/Models/ICEvent.swift @@ -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]? diff --git a/Sources/iCalendarParser/Parser/ICParser.swift b/Sources/iCalendarParser/Parser/ICParser.swift index 22d937a..603904a 100644 --- a/Sources/iCalendarParser/Parser/ICParser.swift +++ b/Sources/iCalendarParser/Parser/ICParser.swift @@ -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()