CircleView - Tai-Kimura/SwiftJsonUI GitHub Wiki
CircleView
class: SJUICircleView inherites: UIView
Platform Support
- ✅ UIKit: Full support (All attributes available)
- ✅ SwiftUI: Full support (Maps to Circle or RoundedRectangle)
Attributes for CircleView
| attribute name | UIKit | SwiftUI | type in json | details | remarks |
|---|---|---|---|---|---|
| background | ✅ | ✅ | string | Background color for circle | |
| borderWidth | ✅ | ✅ | float | Border width for circle | |
| borderColor | ✅ | ✅ | string | Border color for circle | |
| fillColor | ✅ | ✅ | string | Fill color for circle | |
| strokeColor | ✅ | ✅ | string | Stroke color for circle | |
| strokeWidth | ✅ | ✅ | float | Stroke width for circle | |
| All View attributes | ✅ | ✅ | - | Inherits all attributes from View | See View |
Functions for CircleView
public class func createFromJSON(attr: JSON, target: Any, views: inout [String: UIView]) -> SJUICircleView
This method will be called when it's created from json file. Override This method when you create classes inherite SJUICircleView class.