Simple CSV parsing for macOS, iOS, tvOS and watchOS in Swift.
open sourceMITfree
SwiftCSV parses CSV and other delimited text in Swift on macOS, iOS, tvOS and watchOS. It loads from a string, a file URL or an app bundle resource, guesses the delimiter or takes any character you give it, and gives rows either by header name or by position, with parse errors you can catch.
Problems it solves
- read a CSV file in my iOS app
- parse a tab-separated file in Swift
- turn CSV rows into dictionaries keyed by the header in Swift
Features
- load CSV from a string, a file URL or a bundle resource
- delimiter guessing, or any custom delimiter character
- rows by header name (Named) or by position (Enumerated)
- custom text encodings
