多层级映射问题
- Dominant language
- Swift
- Stars
- 4.3k
- Forks
- 677
- PR merge metrics
- No merged PRs in 30d
Description
```
extension CGRect: HandyJSON {
public mutating func mapping(mapper: HelpingMapper) {
mapper <<<
self.origin.x <-- ["x"]
mapper <<<
self.origin.y <-- ["y"]
mapper <<<
self.size.width <-- ["width"]
mapper <<<
self.size.height <-- ["height"]
}
public mutating func didFinishMapping() {
// print(self)
}
}
```
我这样写不能赋值,有什么办法吗
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue provides only a CGRect mapping snippet and no repository file or test. Reproduce the nested-property assignment with that snippet, then inspect HandyJSON's mapper implementation and existing mapping tests; done means x, y, width, and height deserialize into CGRect successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100