Array
public extension Array where Element: BaseText
public extension Array where Element: Text
public extension Array where Element: ControlStateText
-
Returns a new text by concatenating the elements of the sequence, adding the given separator between each element.
Declaration
Swift
func joined(separatorText: Element? = nil) -> Element?
Parameters
separatorText
A text to insert between each of the elements in this sequence. Default value is nil.
Return Value
A single, concatenated text.
-
Returns a new text by concatenating the elements of the sequence, adding the given separator between each element.
Declaration
Swift
func joined(separator: String, strategy: SeparatorStrategy = .left) -> Text
Parameters
separator
A string to insert between each of the elements in this sequence.
strategy
The strategy of separator styling. Default value is left.
Return Value
A single, concatenated text.
-
Returns a new text by concatenating the elements of the sequence, adding the given separator between each element.
Declaration
Swift
func joined(separator: String, strategy: SeparatorStrategy = .left) -> ControlStateText
Parameters
separator
A string to insert between each of the elements in this sequence.
strategy
The strategy of separator styling. Default value is left.
Return Value
A single, concatenated text.