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.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
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.