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.

Where It Fits
CometChatSession.initialize(appID:region:enableCalling: true)
— and a logged-in user. See Calling Integration.
Quick Start
- SwiftUI
- UIKit
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 aCallLogsQuery — a value, so the Kit never changes yours. It
applies from the first page. The default lists ringing calls (category: .call), 30 a page.
- SwiftUI
- UIKit
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.
- SwiftUI
- UIKit
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, onCometChatOutgoingCall. On a group row the button is hidden,
because there is no one person to ring.
- SwiftUI
- UIKit
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
- SwiftUI
- UIKit
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.- SwiftUI
- UIKit
Call
refresh() on the list’s store to refresh on demand. See Store Access.Functionality
- SwiftUI
- UIKit
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.
- SwiftUI
- UIKit
Replace a state view with
loadingView, emptyView or errorView, or hide it with
hideLoadingState, hideEmptyState or hideErrorState.Custom View Slots
- SwiftUI
- UIKit
Replace the whole row, or one part of it. Each slot receives the row’s
ChatCallLog:Or for every call log in a subtree:
Menu Options
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.- SwiftUI
- UIKit
options and addOptions add yours.Advanced Methods
Store Access
CallLogsStore pages the calls and keeps them current.
- SwiftUI
- UIKit
Pass your own to read its A seeded store never fetches.
state, to refresh() it, or to show fixed rows in a preview:store.sdkCallLog(for: log.id) returns the Calls SDK’s own
CallLog behind a row, typed Any.Subclassing
- SwiftUI
- UIKit
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
- SwiftUI
- UIKit
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