import Table
Table().put([["A", "B", "C"],
["X", "XX", "XXX"],
["Hello", "World", "!"]])Creates the following output:
+-------+-------+-----+
| A | B | C |
+-------+-------+-----+
| X | XX | XXX |
+-------+-------+-----+
| Hello | World | ! |
+-------+-------+-----+
Table.swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Table.swift"To integrate Table.swift into your Xcode project using Carthage, specify it in your Cartfile:
github "jkandzi/Table.swift"
Run carthage update to build the framework and drag the built Table.framework into your Xcode project.
To install with the Swift Package Manager, add the following in your Package.swift:
import PackageDescription
let package = Package(
name: "MyProject",
dependencies: [
.Package(url: "https://github.com/jkandzi/Table.swift", majorVersion: 1)
]
)You can also copy the Table.swift file into your Xcode project.
You are welcome to fork and submit pull requests.
Justus Kandzi, justus.kandzi@gmail.com
Table.swift is available under the MIT license. See the LICENSE file for more info.