maparoni / GeoProjector

Native Swift library for drawing map projections
MIT License
8 stars 0 forks source link

Refactor drawing code to untangle from UIKit #4

Closed nighthawk closed 1 year ago

nighthawk commented 1 year ago

GeoDrawer currently only supports drawing using UIKit directly, creating a UIImage.

This should be refactored to first create an intermediary representation of the projected components as paths (and maybe circles). And then there's more light-weight platform-specific logic to turn that into a UIImage, draw in a CGContext, turn into SwiftUI Paths, turn into a SVG, etc.