DropmarkItemType 1.0.2

DropmarkItemType 1.0.2

Maintained by Alex Givens.



DropmarkItemType

Version License Platform Twitter

Introduction

DropmarkItemType provides an enum of Dropmark item types, written in Swift. The library integrates UTIKit for clear, legible translation between Apple UTIs and Dropmark item types, specifically using a file's MIME type or filename extension. DropmarkItemType serves as a common core for libraries that process Dropmark items.

Installation

Install the library in your app through CocoaPods. Add the following line to your Podfile, then run pod install.

pod 'DropmarkItemType', '~> 1.0'

Be sure to import the library when needed.

import DropmarkItemType

To include the library as a dependency in another CocoaPod, reference the following line in your podspec.

s.dependency 'DropmarkItemType', '~> 1.0'

Types

Dropmark supports the following item types:

  1. Image
  2. Video
  3. Audio
  4. Link
  5. Text
  6. Color
  7. Stack
  8. Other

Image, Video, Audio, and Other contain files, and are convertible from Apple UTIs. Link, Text, and Color types contain their data in a string. Stack items are special, and behave as a parent to other items.

Migration

Version 1.0.0

DropmarkItemType supports iOS 9.3, macOS 10.10, Swift 4, and Xcode 9.0.

Credits

Created by Alex Givens for Oak.

UTIKit created by Hiroki Kato.

License

The MIT License (MIT)

Copyright (c) 2018 Oak, LLC https://oak.is