Array from dictionary keys in swift September 2, 2022 by Tarik Swift 3 & Swift 4 componentArray = Array(dict.keys) // for Dictionary componentArray = dict.allKeys // for NSDictionary