You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling toJSONString after creating an object with the UIColor.clear property reports an error and fails to serialize successfully.
Code
classSandBoxModel:HandyJSON{varmode:Int=0varcolor:UIColor=.clear
func mapping(mapper:HelpingMapper){
mapper <<<
color <--HexColorTransform()}publicrequiredinit(){}}varmodel=SandBoxModel()
model.color =.clear
if let jsonString = model.toJSONString {print(jsonString)}
Error
Swift/ContiguousArrayBuffer.swift:580: Fatal error: Index out of range
The text was updated successfully, but these errors were encountered:
Question
Calling toJSONString after creating an object with the UIColor.clear property reports an error and fails to serialize successfully.
Code
Error
Swift/ContiguousArrayBuffer.swift:580: Fatal error: Index out of range
The text was updated successfully, but these errors were encountered: