Supporting wwriteLite Files in your app

wwriteLite Logo

Download on App Store

wwriteLite Files

wwrite has a pretty simple file structure. You can support the dropping of wwrite files within your app. There are a few things that are needed to support this.

  1. Define a type is named "com.waynedixon.wwrite.Type-DragFile"
  2. Set your drop targets to be able to accept the type defined in step 1.

File Structure

The drag files have a few properties that you should be able to read, or write to. These are:

  • var text: String - text of the file
  • var name: String - name of the file
  • var type: DefinedType - from above
  • let version: Int = 1 - Type used for importing or indicating the version of the file.
 

wwriteLite Template Files

The template files are a bit more complex than the files, but it is still a pretty simple structure. You can support the dropping of wwrite template within your app. There are a few things that are needed to support this.

  1. Define a type is named "com.waynedixon.wwrite.Type-DragTemplate"
  2. Set your drop targets to be able to accept the type defined in step 1.

Template Structure

The drag templates have a few properties that you should be able to read, or write to. These are:

  • var text: String? - text of the template
  • var name: String? - name of the template
  • var type: DefinedType, from above
  • var backgroundHex: String - hex value for the background color
  • var fontHex: Float - hex value for the font color
  • let version: Int = 1 - Type used for importing or indicating the version of the template.
 

Assistance

If you need any assistance implementing the files or templates, just reach out to support.

Last Modified: February 16th 2022