CarbonStyle
public struct CarbonStyle : Codable, Equatable
extension CarbonStyle: CustomStringConvertible
Describes the style to apply to Carbon snippet.
-
Background color
Declaration
Swift
public let background: Color -
Image size.
Declaration
Swift
public let size: Size -
Carbon theme.
Declaration
Swift
public let theme: Theme -
Carbon font type.
Declaration
Swift
public let fontType: Font -
Shows/hides lines of code.
Declaration
Swift
public let lineNumbers: Bool -
Shows/hides nef watermark.
Declaration
Swift
public let watermark: Bool -
Initializes a
CarbonStyleDeclaration
Parameters
backgroundBackground color.
themeCarbon theme.
sizeExported image size.
fontTypeCarbon font type.
lineNumbersShows/hides lines of code.
watermarkShows/hides the watermark.
-
Represents image size.
See moreDeclaration
Swift
public enum Size : Double, Codable, Equatable, CaseIterable -
Represents a Carbon theme.
See moreDeclaration
Swift
public enum Theme : String, Codable, Equatable, CaseIterable -
Represents a Carbon font type
See moreDeclaration
Swift
public enum Font : String, Codable, Equatable, CaseIterable -
Represents background color
See moreDeclaration
Swift
public struct Color : CustomStringConvertible, Codable, Equatable -
Declaration
Swift
public var description: String { get }
Install in Dash
CarbonStyle Structure Reference