2 Replies
      Latest reply on Jul 5, 2019 11:14 AM by ShinehahGnolaum
      ShinehahGnolaum Level 1 Level 1 (0 points)

        I suspect there must be a way to retrieve a certain property of all the objects in an array, in the format of:

         

        let records: [CKRecord]
        
        let recordIDs: [CKRecordID] = records.someMethod( (CKRecord)->CKRecord.ID) )
        
        

         

        So that I get an array of CKRecord.ID from an array of CKRecord.

         

        Is there such a method of the Array class like that?