Skip to content

Commit e3d3659

Browse files
author
H. Li
authored
Merge pull request alibaba#397 from mewehk/master
fix iOS 14 beta 4 crash
2 parents dcf39cf + 7d4a974 commit e3d3659

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/ExtendCustomModelType.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@ fileprivate func assignProperty(convertedValue: Any, instance: _ExtendCustomMode
7474

7575
fileprivate func readAllChildrenFrom(mirror: Mirror) -> [(String, Any)] {
7676
var children = [(label: String?, value: Any)]()
77-
let mirrorChildrenCollection = AnyRandomAccessCollection(mirror.children)!
78-
children += mirrorChildrenCollection
77+
children += mirror.children
7978

8079
var currentMirror = mirror
8180
while let superclassChildren = currentMirror.superclassMirror?.children {
82-
let randomCollection = AnyRandomAccessCollection(superclassChildren)!
83-
children += randomCollection
81+
children += superclassChildren
8482
currentMirror = currentMirror.superclassMirror!
8583
}
8684
var result = [(String, Any)]()

0 commit comments

Comments
 (0)