Latest 1.0.0
Homepage https://github.com/bitcalc/libSwiftCSV
License MIT
Platforms osx 10.9, requires ARC

A standards compliant CSV parser written in Swift.

Installation

CocoaPods

pod "libSwiftCSV"

Manual

Download the framework and drag it into your project.

Usage

let table = SwiftCSV(string: "Name,AgenJohn,50nJane,48") // failable

table.headers    = ["Name", "Age"]
table.rows       = [
      ["John", "50"],
      ["Jane", "48"]
]
table.dictionary = [
    ["Name" : "John", "Age" : "50"],
    ["Name" : "Jane", "Age" : "48"]
]

// See the function definition for more options on initialisation.

Options

The init method supports passing a custom separator and pre-defined headers, falling back to "," and the first row respectively.

Contributing

Open an issue and/or send a pull request…

Latest podspec

{
    "name": "libSwiftCSV",
    "version": "1.0.0",
    "summary": "A standards compliant CSV parser written in Swift.",
    "homepage": "https://github.com/bitcalc/libSwiftCSV",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "Alex Sanderson",
    "source": {
        "git": "https://github.com/bitcalc/libSwiftCSV.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "osx": "10.9"
    },
    "source_files": "SwiftCSV/**/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This