c20e8e2d4c
* 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.
33 lines
483 B
Swift
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
|