Skip to content

Commit

Permalink
fix conversion from XML without properties
Browse files Browse the repository at this point in the history
  • Loading branch information
evermeer committed Mar 10, 2016
1 parent 06572b3 commit 9394ad3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion EVReflection.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |s|
#

s.name = "EVReflection"
s.version = "2.20.0"
s.version = "2.20.1"
s.summary = "iOS: Swift helper library with reflection functions"
s.description = "Swift helper library with reflection functions including support for NSCoding, Printable, Hashable, Equatable and JSON"
s.homepage = "https://github.com/evermeer/EVReflection"
Expand Down
3 changes: 3 additions & 0 deletions EVReflection/pod/EVReflection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,9 @@ final public class EVReflection {
} else if type.rangeOfString("<NSDictionary>") == nil && dictValue as? [NSDictionary] != nil {
// Array of objects
dictValue = dictArrayToObjectArray(type, array: dictValue as! [NSDictionary]) as [NSObject]
} else if (original is EVObject && dictValue is String) {
// fixing the conversion from XML without properties
dictValue = dictToObject(type, original:original, dict: ["__text": dictValue as! String])
}
}
return dictValue
Expand Down

0 comments on commit 9394ad3

Please sign in to comment.