Posts

Post marked as solved
3 Replies
If I understood that correctly, you want the elements of the getArray () method to be equal to the arraylist myArray.That is my suggestion://Array var myArray: [String] = [] //Set the data myArray = getArray() //Method func getArray() -> [String] { return ["a","b","c"] }