Update README.md
A simple tool that generates Swift byte array from any asset. Inspired by go-bindata. You can include assets in binary by using this tool.
$ brew tap rb-de0/homebrew-tap $ brew install swift-bindata
swift-bindata converts all assets in the specified directory to binary and outputs it to one file.
$ swift-bindata assets/ -o dest/
The generated code is as follows.
struct Assets { struct Index { static func makeData() -> [UInt8] { return [60, 33, 68, 79, 67, 84, 89, 80] } } }
swift-bindata is available under the MIT license. See the LICENSE file for more info.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
swift-bindata
A simple tool that generates Swift byte array from any asset. Inspired by go-bindata. You can include assets in binary by using this tool.
Installation
Homebrew Tap
Usage
swift-bindata converts all assets in the specified directory to binary and outputs it to one file.
The generated code is as follows.
Future Improvement
LICENSE
swift-bindata is available under the MIT license. See the LICENSE file for more info.