Skip to content

Project structure

Hylke Bons edited this page May 30, 2020 · 1 revision

Project structure

FigmaSharp

Methods to talk to the figma.com REST API.


FigmaSharp.Models

Data structures that represent the Figma file structure.


FigmaSharp.Services

Convenience objects to interact with the Figma REST API.


FigmaSharp.Cocoa

Converters that translate Figma layers into Cocoa drawn views.


FigmaSharp.NativeControls
FigmaSharp.NativeControls.Cocoa

Converters that translate special Figma library components into native Cocoa controls.


Design

  • Create a new or update an existing Figma component library with the new control

Code

Adding a new control

  • Specify the name and add a control type enum
  • Subclass a base control or container converter class
  • Implement the CanConvert method
  • Implement the conversion to views and code methods
  • Add the converter class to the converters list