Mirror icon indicating copy to clipboard operation
Mirror copied to clipboard

Swift objects Reflection

Results 4 Mirror issues
Sort by recently updated
recently updated
newest added

Hello! Today I stuck with an issue after swift-2-old branch was dropped. Some Mirror's declaration don't work anymore, Ex: 1) let itemMirror: Mirror? doesnt compile https://gyazo.com/b5efc0486eaf7db664f5353661c4772b 2) if let value...

An updated Swift 2.0 branch would be fantastic. Great work!

you see, a Class ,has it’s properties,but,to get it’s properties,i need init a instance. can you support Mirror a Class directly? like this: let mirror = Mirror(Student) thank you!!!

wontfix

for example,i have a Class, ``` Class Person{ var name: String var age: Int var friend: [Person] } ``` you had support the properties’s normal types but, if properties’s type...