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
separatorTextA 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) -> TextParameters
separatorA string to insert between each of the elements in this sequence.
strategyThe 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) -> ControlStateTextParameters
separatorA string to insert between each of the elements in this sequence.
strategyThe strategy of separator styling. Default value is left.
Return Value
A single, concatenated text.
View on GitHub
Array Extension Reference