Skip to main content
CometChatCallLogs lists the logged-in user’s calls — incoming, outgoing and missed, voice and video — newest first, paging as you scroll. Each row shows the other party, which way the call went and when, with a call-back button that rings them again. Tapping a row hands you the log, so you can open its details.
CometChatCallLogs showing incoming, outgoing and missed calls with call-back buttons

Where It Fits

The Kit has no in-app incoming-call screen: incoming calls ring through CallKit (see Call Features). The list needs calling turned on — CometChatSession.initialize(appID:region:enableCalling: true) — and a logged-in user. See Calling Integration.

Quick Start

As a tab, with nothing else:
The list brings its own NavigationStack for its system navigation bar. To push the details screen from a row, put it in your stack instead and pass embedsNavigationStack: false:
onItemClick has no default: with none, a tap does nothing.

Filtering Call Logs

The request builder takes a CallLogsQuery — a value, so the Kit never changes yours. It applies from the first page. The default lists ringing calls (category: .call), 30 a page.
A new query passed later starts the list again from page one.

Filter Recipes


Rows

Each row is the other party’s avatar and name, a direction icon with the call’s date, and a call-back button for the call’s type. The other party is the group for a group call, the receiver of a call you made, and the caller otherwise. The date reads 14 October, 10:13 am this year and 14 October 2025, 10:13 am before it.
Pass a dateTimeFormatter to write it yourself:

The Call-Back Button

On a 1:1 row the button rings the other party with the log’s call type, on CometChatOutgoingCall. On a group row the button is hidden, because there is no one person to ring.
The call is shown by .cometChatCallPresenter() when your app installs it, otherwise by the list itself.onCallIconClick replaces the default on every row, and shows the button on group rows too:

Actions and Events

Callback Methods

SDK Events (Real-Time, Automatic)

The list refreshes on pull-to-refresh, when a call ends — here or reported by the Chat SDK — and when the connection comes back. It does not refetch when its screen reappears.
Call refresh() on the list’s store to refresh on demand. See Store Access.

Functionality

Every option is also a modifier for all the call logs in a subtree. An initialiser argument wins:

States

A failed next page shows the error state; Retry starts again from page one. A failed refresh keeps the rows on screen and reaches onError.
Replace a state view with loadingView, emptyView or errorView, or hide it with hideLoadingState, hideEmptyState or hideErrorState.

Custom View Slots

Replace the whole row, or one part of it. Each slot receives the row’s ChatCallLog:
Or for every call log in a subtree:

The call log has no row options of its own. Add yours, and both are shown: as trailing swipe actions and as the long-press menu. A row with no options has neither.
options and addOptions add yours.

Advanced Methods

Store Access

CallLogsStore pages the calls and keeps them current.
Pass your own to read its state, to refresh() it, or to show fixed rows in a preview:
A seeded store never fetches. store.sdkCallLog(for: log.id) returns the Calls SDK’s own CallLog behind a row, typed Any.

Subclassing

CometChatCallLogs is a View struct. Customise it with its slots, modifiers and style.

Accessibility

  • Each row reads the other party’s name, the direction and the call type; the call-back button is its own element, “Call back”.
  • The empty and error states are announced when they appear.

Style

CometChatCallLogsStyle is sparse: set only what you change. Row properties live in its itemStyle, a CallLogListItemStyle.

Next Steps

Call Log Details

Show one call’s details and history

Outgoing Call

The screen the call-back button opens

Call Features

How calls ring and are presented

Calling Integration

Turn calling on in your app