Removes Dead code & regenerate code (#7744)

Formats the swift project

Update Sample files

Update docc documentation

Updates swift docs in the website

Updates code for Wasm
This commit is contained in:
mustiikhalil
2023-01-07 01:40:40 +01:00
committed by GitHub
parent e61b00359b
commit 4d6a7aa8b7
61 changed files with 277 additions and 243 deletions

View File

@@ -2472,10 +2472,10 @@ myGame.Monster monster = new myGame.Monster(data);
<div class="language-swift">
~~~{.swift}
// create a ByteBuffer(:) from an [UInt8] or Data()
let buf = // Get your data
var buf = // Get your data
// Get an accessor to the root object inside the buffer.
let monster = Monster.getRootAsMonster(bb: ByteBuffer(bytes: buf))
let monster: Monster = try! getCheckedRoot(byteBuffer: &byteBuffer)
// let monster: Monster = getRoot(byteBuffer: &byteBuffer)
~~~
</div>