We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling toJSONString after creating an object with the UIColor.clear property reports an error and fails to serialize successfully.
class SandBoxModel: HandyJSON { var mode: Int = 0 var color: UIColor = .clear func mapping(mapper: HelpingMapper) { mapper <<< color <-- HexColorTransform() } public required init() {} } var model = SandBoxModel() model.color = .clear if let jsonString = model.toJSONString { print(jsonString) }
Swift/ContiguousArrayBuffer.swift:580: Fatal error: Index out of range
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: