Skip to main content

Using RealtimeKit GridView

The main grid component which abstracts all the grid handling logic and renders it for you.

var gridView = GridView(showingCurrently: 9, getChildView: {
return RtkParticipantTileContainerView()
})

Populate Grid Child Views

To setup the grid & set Participant inside code do as follows

func populateGridChildViews(participants: [RtkRemoteParticipant]) {
for i in 0..<participants.count {
if let peerContainerView = self.gridView.childView(index: i) {
peerContainerView.setParticipant(meeting: self.meeting,
participant: participants[i])
}
}
}