I\'m messing around with parsing JSON with SwiftyJSON on a swift playground. My code is as follows:
import UIKit import SwiftyJSON var partyList: [String] =
Since iOS 13.0+ / macOS 10.15+ Apple provides the ListFormatter. See also here for details.
Arrays can be formatted as easy as:
let elements = ["a", "b", "c"] result = ListFormatter.localizedString(byJoining: elements)
As the function name suggests, you also get the localization for free.