Releases: GetStream/stream-swift
Releases · GetStream/stream-swift
2.2.2
2.2.1
2.2.0
💥 Breaking Changes
The Client will always work as a shared instance and you can setup it without a user token:
Client.config = .init(apiKey: "<#ApiKey#>", appId: "<#AppId#>")The user setup is more clear. You can easily manage user login/logout:
Client.shared.setupUser(token: token) { _ in
// Do all your requests from here. Reload feeds and etc.
}No need to send to create a Stream user request for new users.
You can use custom User type with an additional user parameter. For example:
let myUser = MyUser(id: "123", name: "John Doe", avatarURL: avatarURL)
Client.shared.setupUser(myUser, token: token) { _ in
print(MyUser.current)
}✅ Added
- Custom JSON Encoder/Decoder. You can change
JSONDecoder.defaultandJSONEncoder.default.
🔄 Changed
ClientError.parameterInvalid(AnyKeyPath)>ClientError.parameterInvalid(String)
🐞 Fixed
- Xcode 10 support
- Cached
ISO8601DateFormatter.
2.1.0
2.0.1
2.0.0
1.2.2
1.2.0
1.1.9
- The
Activityactor now is aUserby default. - Added
createCurrentUsermethod to simplify the client setup.
See docs: https://github.com/GetStream/stream-swift/wiki/Quick-start