SwiftKit Documentation

Extensions on Array

Properties

is​Not​Empty

public var isNotEmpty: Bool  

Array that's not empty will be true

Methods

string​Value()

public func stringValue() -> String  

Get String value from array of String

Example:

let array = ["Apple", "Banana", "Orange"]
     
array.getFormattedValue() -> Apple, Banana, Orange

Returns: String value with comma separated