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

    Swift

    public init(background: Color, theme: Theme, size: Size, fontType: Font, lineNumbers: Bool, watermark: Bool)

    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 more

    Declaration

    Swift

    public enum Size : Double, Codable, Equatable, CaseIterable
  • Represents a Carbon theme.

    See more

    Declaration

    Swift

    public enum Theme : String, Codable, Equatable, CaseIterable
  • Represents a Carbon font type

    See more

    Declaration

    Swift

    public enum Font : String, Codable, Equatable, CaseIterable
  • Represents background color

    See more

    Declaration

    Swift

    public struct Color : CustomStringConvertible, Codable, Equatable
  • Declaration

    Swift

    public var description: String { get }