Releases: GetStream/stream-swift
Releases · GetStream/stream-swift
1.1.7
1.1.6
1.1.5
- Added a
Bundleextension for Stream setup. - Extended
Reactionablewithoriginalobject. - Extended
Reactionablewith user own reactions convenient functions. - Added to
FeedIda new constructor for the current user.init?(feedSlug: String). - Added
originFeedIdfor theActivity. - Added associated types for
ReactionProtocol.
1.1.4
1.1.3
Added
- A shared instance for the
Client. Just setupClient.configbefore using it.
// Setup a shared Stream client before using it.
Client.config = .init(apiKey: "API_KEY", appId: "APP_ID", token: "TOKEN")
// Create Chris's user feed.
let chrisFeed = Client.shared.flatFeed(feedSlug: "user", userId: "chris")
- A new property
feedGroupIdfor theActivity. - New properties
unseenCountandunreadCountto theResponse.
Fixes
- Hided logs from the Faye client.
- Subscriptions for updates to keeping web socket connection.
- Fixed a feed subscription callbackQueue.
1.1.1
- New reactions will add at the beginning of the activity reactions.
- Added user own reactions for a reaction in requests of getting reactions by
activityId. - Added a new type
ReactionExtraDataas an example of reaction extra data usage with a different content type. - Added functions to Reaction for child reaction managing.
1.1.0
- Reaction type require a
Usertype. - Added the
userproperty forReactionand removed theuserIdproperty. - Activity type require a
ReactionTypetype (ReactionProtocol). ReactionNoExtraDatarenamed toEmptyReactionExtraData.- Added
DefaultReaction=Reaction<EmptyReactionExtraData, User> - Updated
Activity=EnrichedActivity<String, String, String, DefaultReaction>
1.0.4
Client.callbackQueuenow isDispatchQueue.mainby default and would be used after parsing for completion blocks.Feedhas owncallbackQueueand by default it usedClient.callbackQueue.ActivityProtocolextended with helper functionsaddOwnReactionanddeleteOwnReaction(docs).- Reactions and
Userare equitable now. ActivityProtocolisEnrichablenow. It's very useful if needs to use an activity as an enrichable object. For example in repost, whereobjectcould be the original activity.
1.0.3
- Response for items with
next: Paginationandduration. - Fixed SPM
- Docs generated: https://getstream.github.io/stream-swift/