Files
flatbuffers-bigfoot/swift/README.md
mustiikhalil 4e79d129cb [Swift] Rebuild the way swift handles structs from scratch (#6326)
* Rebuild the way swift handles structs from scratch

* Updates docs, and sample binary

* Replaces InMemory to Mutable

* Migrates docs from inmemory

* use inline for some functions

* Renamed Mutable objects

* Updates documentation
2020-12-17 14:55:32 -08:00

730 B

FlatBuffers swift can be found in both SPM

.package(url: "https://github.com/mustiikhalil/flatbuffers.git", from: "X.Y.Z"),

and Cocoapods

pod 'FlatBuffers'

Notes

1- To report any error please use the main repository.

2- 1.0.0 deprecates MyGame_Example_Vec3.createVec3(builder: &fbb, x: 10, test2: .blue) for MyGame_Example_Vec3(x: 10, test2: .blue). This uses Swift native structs instead of workarounds that which leads to a huge performance increase when serializing structs. You can download the binary here and select the latest push to master

Contribute

1- Always run swift test --generate-linuxmain whenever new test functions are added or removed