Swiftpack.co - Package - griffin-stewie/ASE

ASE

platforms Language: Swift 5.0 Swift Package Manager compatible

ASE package load ase file a.k.a. "Adobe Swatch Exchange" as NSColorList.

Usage

import ASE

do {
    let ase = try ASE(from: url)
    
    // Access color by name
    let red = ase["Red 50"]
    
    // Get NSColorList
    let colorList = ase.colorList
    
    // Save as NSColorList.
    try ase.writeAsColorList(to: URL(string: "Somewhere"))
} catch {
    fatalError("Failed to load")
}

Acknowledgments

  • https://github.com/hughsk/adobe-swatch-exchange
  • https://github.com/m99coder/ase2json
  • https://github.com/ramonpoca/ColorTools
  • https://gist.github.com/codelynx/932150fd13f0317df264

Github

link
Stars: 0

Dependencies

Used By

Total: 0