Mirror
Last updated
Was this helpful?
Last updated
Was this helpful?
๐พ ็จๅผ๏ผ
HasMirrors - use Mirror to inspect types.
CaseReflectable - inspect case.
NonNominalTypeWrapper - help inspect .
enum case pattern - use Mirror to pattern match an enum case.
้้ตๅญ๏ผmeta programming, reflection
SwiftLee โฉ
AppVenture.me โฉ
Sundell โฉ
NSHipster โฉ
โฉ
โฉ (struct)
โฉ
- String(reflecting: subject) โ โ โ Swift standard library
. - String(describing: subject) โ โ โ Swift standard library
Swift.org โฉ - how Mirror works under the hood.
filter cases - use Mirror to do .
CaseReflectable - use Mirror to get case name/associated values.
NonNominalTypeWrapper - wrap to conform to .