Working on fixing this issue

This commit is contained in:
Ryan 2018-12-16 14:14:04 -05:00
parent e89694e24b
commit b1624e3852
2 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,7 @@ open class StORM : StORMMirror {
return try! (v as! [String:Any]).jsonEncodedString() return try! (v as! [String:Any]).jsonEncodedString()
default: default:
// Here we will support new database types by returning what we need conforming to CustomStringConvertable. // Here we will support new database types by returning what we need conforming to CustomStringConvertable.
return String(describing: v) return v
} }
} }

View File

@ -89,6 +89,7 @@ extension Array where Iterator.Element == Mirror {
var allChild : [Mirror.Child] = [] var allChild : [Mirror.Child] = []
for mirror in self { for mirror in self {
mirror.children.forEach({ (child) in mirror.children.forEach({ (child) in
print(child)
// Make sure our child has a label & the string describing the value is not nil. (Making optionals supported) // Make sure our child has a label & the string describing the value is not nil. (Making optionals supported)
if !includingNilValues { if !includingNilValues {
if child.label.isNotNil, String(describing: child.value) != "nil" { if child.label.isNotNil, String(describing: child.value) != "nil" {