Swiftpack.co - dmail-me/iCalendarParser as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dmail-me.
dmail-me/iCalendarParser 0.2.0
iCalendar (RFC5545) parser in Swift
⭐️ 13
🕓 6 weeks ago
.package(url: "https://github.com/dmail-me/iCalendarParser.git", from: "0.2.0")

iCalendarParser

A RFC 5545 compatible parser for iCalendar files in Swift.

Installation

To use iCalendarParser just add it as Swift Package Manager dependency:

via Xcode

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.

via SPM Package.swift

dependencies: [
    .package(
      name: "iCalendarParser",
      url: "https://github.com/dmail-me/iCalendarParser",
      from: "0.1.0"
    )
]

Usage

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)

Is it production ready?

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.

TODO

  • Parse To-Do, Journal, Free/Busy, and Alarm components
  • Add additional properties in ICEvent

Contributing

Contributions to iCalendarParser are welcomed and encouraged!

License

iCalendarParser is available under the MIT license. See LICENSE for more information.

Credits

GitHub

link
Stars: 13
Last commit: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.2.0
6 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/dmail-me/iCalendarParser/compare/0.1.0...0.2.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics