Berildocs GitHub

Memory cards

Swift uses witness tables and value types

confidence: mediumupdated: 2026-11-24status: activereswiftios

Claim#

Methods dispatch through witness tables; structs and enums have layouts that differ from Objective-C.

Test#

Demangle symbols. Find witness tables. Map the value layout before reading a method.

Proof#

A recovered protocol method and a correct field layout.

Failure modes#

Objective-C bridging hides some calls. Swift name mangling changes by version.