activity
The current activity associated with the session.
Declaration
@Published<ActivityType> final var activity: ActivityType { get set }Discussion
Use this property to fetch information about the selected activity. The value in this property conforms to the GroupActivity protocol. Use it to fetch the activity details.
The participants of a session may change the current activity at any time, and the session updates this property dynamically to reflect any changes. Subscribe to the property to listen for changes, and update your app’s activity to match.