Instance member cannot be used on type of custom class

What you need there is a read only computed property:

var stringArray: [String] { 
    return whiskyArray.map{$0.whiskyName!} 
}

Leave a Comment