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
CarbonStyle
Declaration
Parameters
background
Background color.
theme
Carbon theme.
size
Exported image size.
fontType
Carbon font type.
lineNumbers
Shows/hides lines of code.
watermark
Shows/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 }