dateFormat
TypeScriptget dateFormat(): (string) | nullSwift declarationvar dateFormat: String?The format the CSV file generator uses to create date strings. Defaults to `nil`, which uses ISO 8601 encoding.
struct · iOS 15.0+ · SDK 27.1
struct CSVWritingOptionsA set of CSV file-writing options.
get dateFormat(): (string) | nullSwift declarationvar dateFormat: String?The format the CSV file generator uses to create date strings. Defaults to `nil`, which uses ISO 8601 encoding.
set dateFormat(value: (string) | null)Swift declarationvar dateFormat: String?The format the CSV file generator uses to create date strings. Defaults to `nil`, which uses ISO 8601 encoding.
get nilEncoding(): stringSwift declarationvar nilEncoding: StringThe string the CSV file generator uses to represent nil values. Defaults to an empty string.
set nilEncoding(value: string)Swift declarationvar nilEncoding: StringThe string the CSV file generator uses to represent nil values. Defaults to an empty string.
get trueEncoding(): stringSwift declarationvar trueEncoding: StringThe string the CSV file generator uses to represent true Boolean values. Defaults to `true`.
set trueEncoding(value: string)Swift declarationvar trueEncoding: StringThe string the CSV file generator uses to represent true Boolean values. Defaults to `true`.
get dateFormatter(): ((arg0: globalThis.Date) => Promise<string>)Swift declarationvar dateFormatter: (Date) -> String { get set }A closure that maps dates to their string representations. Defaults to ISO 8601 encoding.
get falseEncoding(): stringSwift declarationvar falseEncoding: StringThe string the CSV file generator uses to represent false Boolean values. Defaults to `false`.
set falseEncoding(value: string)Swift declarationvar falseEncoding: StringThe string the CSV file generator uses to represent false Boolean values. Defaults to `false`.
static initIncludesHeaderDateFormatNilEncodingTrueEncodingFalseEncodingNewlineDelimiter(includesHeader?: boolean, dateFormat?: (string) | null, nilEncoding?: string, trueEncoding?: string, falseEncoding?: string, newline?: string, delimiter?: string): CSVWritingOptionsSwift declarationinit(includesHeader: Bool = true, dateFormat: String?, nilEncoding: String = "", trueEncoding: String = "true", falseEncoding: String = "false", newline: String = "\n", delimiter: Character = ",")Creates a set of options for writing a CSV file. - Parameters: - includesHeader: A Boolean value that indicates whether to write a header with the column names. Defaults to `true`. - dateFormatter: The format the CSV file generator uses to create date strings. - nilEncoding: The spelling for nil values. Defaults to an empty string. - trueEncoding: The spelling for true Boolean values. Defaults to `true`. - falseEncoding: The spelling for false Boolean values. Defaults to `false`. - newline: The newline sequence. Defaults to a line feed. - delimiter: The field delimiter. Defaults to comma (`,`).
static initIncludesHeaderNilEncodingTrueEncodingFalseEncodingNewlineDelimiter(includesHeader?: boolean, nilEncoding?: string, trueEncoding?: string, falseEncoding?: string, newline?: string, delimiter?: string): CSVWritingOptionsSwift declarationinit(includesHeader: Bool = true, nilEncoding: String = "", trueEncoding: String = "true", falseEncoding: String = "false", newline: String = "\n", delimiter: Character = ",")Creates a set of options for writing a CSV file. - Parameters: - includesHeader: A Boolean value that indicates whether to write a header with the column names. Defaults to `true`. - nilEncoding: The spelling for nil values. Defaults to an empty string. - trueEncoding: The spelling for true Boolean values. Defaults to `true`. - falseEncoding: The spelling for false Boolean values. Defaults to `false`. - newline: The newline sequence. Defaults to a line feed. - delimiter: The field delimiter. Defaults to comma (`,`).
get includesHeader(): booleanSwift declarationvar includesHeader: BoolA Boolean value that indicates whether to write a header with the column names. Defaults to `true`.
set includesHeader(value: boolean)Swift declarationvar includesHeader: BoolA Boolean value that indicates whether to write a header with the column names. Defaults to `true`.
get newline(): stringSwift declarationvar newline: StringThe string the CSV file generator uses to represent a newline sequence. Defaults to a line feed.
set newline(value: string)Swift declarationvar newline: StringThe string the CSV file generator uses to represent a newline sequence. Defaults to a line feed.
get delimiter(): stringSwift declarationvar delimiter: CharacterThe character the CSV file generator uses to separate data fields in a CSV file. Defaults to comma (`,`).
set delimiter(value: string)Swift declarationvar delimiter: CharacterThe character the CSV file generator uses to separate data fields in a CSV file. Defaults to comma (`,`).
static init(): CSVWritingOptionsSwift declarationinit()Creates the default set of options for writing a CSV file.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CSVWritingOptions.dateFormatter
closure property answers its caller