1
1
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:
Daniil Manin 2019-05-30 13:59:09 +07:00
parent f7f45b061f
commit 12518d28ca

View File

@ -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] {