MagicMirror

0.2.0

Implementation of Mirror not affected by CustomReflectable
p-x9/swift-magic-mirror

What's New

v0.2.0

2024-02-08T15:33:51Z

Full Changelog: 0.1.0...0.2.0

MagicMirror

Implementation of Mirror not affected by CustomReflectable.

Github issues Github forks Github stars Github top language

About

Normal Mirror may not correctly yield property information if the object conforms to CustomReflectable.

For example, the following structure returns empty children.

struct Item: CustomReflectable {
    let title: String
    let value: Int

    var customMirror: Mirror {
        .init(self, children: [])
    }
}

I created MagicMirror so that information can be obtained correctly in such cases!

Usage

Simply replace MagicMirror in place of regular Mirror.

License

MagicMirror is released under the MIT License. See LICENSE

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Dec 09 2024 05:07:43 GMT-1000 (Hawaii-Aleutian Standard Time)