Files
Down/Source/AST/Styling/Custom Attributes/ThematicBreakAttribute.swift
T
Vlad Gorlov c20e8e2d4c Added Linux support. (#172)
* Added check for os(Linux)

* Sources adopted to Swift Linux Compiler v5.0

* Added Docker configuration to be used for Linux builds.

* Renamed Script.

* Docker configuration update.

* Fixes Linux compile errors.

* Nicification.
2019-10-08 22:43:35 -04:00

33 lines
483 B
Swift

//
// ThematicBreaAttributek.swift
// Down
//
// Created by John Nguyen on 02.08.19.
// Copyright © 2016-2019 Down. All rights reserved.
//
#if !os(watchOS) && !os(Linux)
#if canImport(UIKit)
import UIKit
#elseif canImport(AppKit)
import AppKit
#endif
struct ThematicBreakAttribute {
var thickness: CGFloat
var color: DownColor
}
extension NSAttributedString.Key {
static let thematicBreak = NSAttributedString.Key(rawValue: "thematicBreak")
}
#endif