Activity Feeds V3 is in closed alpha — do not use it in production (just yet).

Pins

Overview

Sometimes you’ll want to pin your favorite activity to a feed. You can pin an activity like this:

let activity = client.activity(
    for: "activity_123",
    in: FeedId(group: "user", id: "john")
)
// Pin an activity
try await activity.pin()

// Unpin an activity
try await activity.unpin()

When you read a feed pinned activities are automatically returned:

let feedData = try await feed.getOrCreate()
print(feedData.pinnedActivities)
© Getstream.io, Inc. All Rights Reserved.