A RFC 5545 compatible parser for iCalendar files in Swift.
To use iCalendarParser
just add it as Swift Package Manager dependency:
Open your project, click on File → Add Packages, enter the repository URL (https://github.com/dmail-me/iCalendarParser.git
), and add the package product to your app target.
dependencies: [
.package(
name: "iCalendarParser",
url: "https://github.com/dmail-me/iCalendarParser",
from: "0.1.0"
)
]
To get started with iCalendarParser, all you have to do is to import it and use its ICParser
type to convert any ICS file into iCalendar object:
import iCalendarParser
let rawICS: String = ...
let parser = ICParser()
let calendar: ICalendar? = parser.calendar(from: rawICS)
iCalendarParser is currently not feature complete yet. While it requires an additional implementation to be fully compatible with RFC5545, we appreciate contributions from the community to help us improve the library.
However, it's worth noting that the library is being used in production within the Dmail.me app, and we are committed to constantly improving it.
- Parse To-Do, Journal, Free/Busy, and Alarm components
- Add additional properties in
ICEvent
Contributions to iCalendarParser are welcomed and encouraged!
iCalendarParser is available under the MIT license. See LICENSE for more information.
- chan614/iCalSwift (Inspired to create an initial implementation)