How to parse content data to get the actual Array object in iOS swift?

I need to get the list of object I store in algolia index. but I am confused how to get the Array of object from content in swift ?

 index.search(query, completionHandler: { (content, error) -> Void in
            
            if let error = error {
                print(error.localizedDescription)
                return
            }
            
            guard let content = content else {return}

            // what should I do in here to get Array Object from this content dictionary ????
            
            
 })

in Android I usually do something like this

index.searchAsync(query) { content, exception ->


            if (exception != null) {
                // display error
            } else {

                val contentData = content ?: return@searchAsync
                val hits = contentData.getJSONArray("hits")

                var events = ArrayList<EventKM>()

                 // convert jsonObject to EventKM object

                for (i in 0 until hits.length()) {
                    val jsonObject = hits.getJSONObject(i)
                    val theEvent = EventKM(jsonObject)
                    events.add(theEvent)

                }

                // display events to UI

            }


}

Hi.
To get hits array from the received content, use the following snippet:

    index.search(query, completionHandler: { (content, error) -> Void in
      if let error = error {
        print(error.localizedDescription)
        return
      }
      
      guard let content = content else { return }

      guard let hits = content["hits"] as? [[String: Any]] else { return }

    }