GroupDetailsViewController
displays comprehensive group information and actions:
CometChat.login()
.UINavigationController
) configured.Component | Role |
---|---|
CometChatGroup | Renders group avatar, name, and metadata. |
GroupActionView | Custom view for action buttons (view/add/banned members). |
CometChatMessagesViewController | Opens group chat interface when “Chat” is tapped. |
CometChat.joinGroup() | Joins public or password-protected groups. |
CometChat.leaveGroup() | Leaves the current group. |
CometChat.deleteGroup() | Deletes and exits the group (owners only). |
CometChatGroupMembers | Lists current group members. |
CometChatGroupDelegate | Receives real-time group events. |
GroupDetailsViewController
for a selected group.
HomeScreenViewController.swift
Initializes and presents the details UI with the correct group context.
GroupDetailsViewController.swift
Lays out the UI components and registers for group events.
GroupDetailsViewController.swift
Enables user interaction for member management.
GroupDetailsViewController.swift
Manages group exit, with transfer prompt for owners.
GroupDetailsViewController.swift
Keeps the group details in sync with back-end events.
CometChatTheme
to customize fonts, colors, and borders.Feature | Component / Method | File(s) |
---|---|---|
Show group details | GroupDetailsViewController | GroupDetailsViewController.swift |
View group members | viewMembersView action | GroupDetailsViewController.swift |
Add members | addMembersView action | GroupDetailsViewController.swift |
Ban members | bannedMembersView action | GroupDetailsViewController.swift |
Join group | CometChat.joinGroup() | GroupDetailsViewController.swift |
Leave group | showLeaveGroupAlert() | GroupDetailsViewController.swift |
Delete group | showDeleteGroupAlert() | GroupDetailsViewController.swift |
Real-time updates | CometChatGroupDelegate | GroupDetailsViewController.swift |