mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
#583 add extension for MacawOSX.Polygon
This commit is contained in:
parent
f7f45b061f
commit
12518d28ca
@ -374,7 +374,6 @@ extension Path: Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: setup Polygon for OSX
|
||||
#if os(iOS)
|
||||
extension Polygon: Serializable {
|
||||
|
||||
@ -384,6 +383,15 @@ extension Polygon: Serializable {
|
||||
}
|
||||
#endif
|
||||
|
||||
#if os(OSX)
|
||||
extension MacawOSX.Polygon: Serializable {
|
||||
|
||||
func toDictionary() -> [String:Any] {
|
||||
return ["type": "Polygon", "points": points]
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
extension Polyline: Serializable {
|
||||
|
||||
func toDictionary() -> [String:Any] {
|
||||
|
Loading…
Reference in New Issue
Block a user