Skip to content

Commit 453aa30

Browse files
author
chantu
committed
try remove firstInstanceStart to fix crash on iOS 13.4 beta
1 parent d32a670 commit 453aa30

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Source/Metadata.swift

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,20 @@ extension Metadata {
205205

206206
func propertyDescriptions() -> [Property.Description]? {
207207
let propsAndStp = _propertyDescriptionsAndStartPoint()
208-
if let firstInstanceStart = propsAndStp?.1,
209-
let firstProperty = propsAndStp?.0.first?.offset {
210-
return propsAndStp?.0.map({ (propertyDesc) -> Property.Description in
211-
if firstInstanceStart >= firstProperty {
212-
let offset = propertyDesc.offset - firstProperty + Int(firstInstanceStart)
213-
return Property.Description(key: propertyDesc.key, type: propertyDesc.type, offset: offset)
214-
} else {
215-
return propertyDesc
216-
}
217-
})
218-
} else {
219-
return propsAndStp?.0
220-
}
208+
// if let firstInstanceStart = propsAndStp?.1,
209+
// let firstProperty = propsAndStp?.0.first?.offset {
210+
// return propsAndStp?.0.map({ (propertyDesc) -> Property.Description in
211+
// if firstInstanceStart >= firstProperty {
212+
// let offset = propertyDesc.offset - firstProperty + Int(firstInstanceStart)
213+
// return Property.Description(key: propertyDesc.key, type: propertyDesc.type, offset: offset)
214+
// } else {
215+
// return propertyDesc
216+
// }
217+
// })
218+
// } else {
219+
// return propsAndStp?.0
220+
// }
221+
return propsAndStp?.0
221222
}
222223
}
223224
}

0 commit comments

Comments
 (0)