Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
# Upcoming

### πŸ”„ Changed
- Update WebRTC to 137.0.42 which brings performance improvements on video rendering. [#983](https://github.com/GetStream/stream-video-swift/pull/983)

# [1.35.0](https://github.com/GetStream/stream-video-swift/releases/tag/1.35.0)
_November 05, 2025_

### βœ… Added
- SwiftUI modifiers that surface moderation blur and warning events in `CallView`. [#987](https://github.com/GetStream/stream-video-swift/pull/987)

### πŸ”„ Changed

# [1.34.2](https://github.com/GetStream/stream-video-swift/releases/tag/1.34.2)
_October 24, 2025_

### πŸ”„ Changed

- Update WebRTC to 137.0.42 which brings performance improvements on video rendering. [#983](https://github.com/GetStream/stream-video-swift/pull/983)

# [1.34.1](https://github.com/GetStream/stream-video-swift/releases/tag/1.34.1)
_October 14, 2025_

Expand All @@ -37,7 +46,7 @@ _September 08, 2025_

### βœ… Added
- When the user is missing a permission, the SDK will prompt them to accept any missing permission. [#915](https://github.com/GetStream/stream-video-swift/pull/915)
- You can now set the `ViewFactory` instance to be used from Picture-in-Picture. [#934](https://github.com/GetStream/stream-video-swift/pull/934)
- You can now set the `ViewFactory` instance to be used from Picture-in-Picture. [#934](https://github.com/GetStream/stream-video-swift/pull/934)
- `CallParticipant` now exposes the `source` property, which can be used to distinguish between WebRTC users and ingest sources like RTMP or SIP. [#93](https://github.com/GetStream/stream-video-swift/pull/933)
- Add the user action to kick a participant from a call. [#928](https://github.com/GetStream/stream-video-swift/pull/928)

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-protobuf.git", exact: "1.30.0"),
.package(url: "https://github.com/GetStream/stream-video-swift-webrtc.git", exact: "137.0.42")
.package(url: "https://github.com/GetStream/stream-video-swift-webrtc.git", exact: "137.0.43")
],
targets: [
.target(
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-5.9%2B-orange.svg" /></a>
</p>
<p align="center">
<img id="stream-video-label" alt="StreamVideo" src="https://img.shields.io/badge/StreamVideo-8.71%20MB-blue"/>
<img id="stream-video-swiftui-label" alt="StreamVideoSwiftUI" src="https://img.shields.io/badge/StreamVideoSwiftUI-2.36%20MB-blue"/>
<img id="stream-video-uikit-label" alt="StreamVideoUIKit" src="https://img.shields.io/badge/StreamVideoUIKit-2.48%20MB-blue"/>
<img id="stream-video-label" alt="StreamVideo" src="https://img.shields.io/badge/StreamVideo-8.77%20MB-blue"/>
<img id="stream-video-swiftui-label" alt="StreamVideoSwiftUI" src="https://img.shields.io/badge/StreamVideoSwiftUI-2.4%20MB-blue"/>
<img id="stream-video-uikit-label" alt="StreamVideoUIKit" src="https://img.shields.io/badge/StreamVideoUIKit-2.52%20MB-blue"/>
<img id="stream-web-rtc-label" alt="StreamWebRTC" src="https://img.shields.io/badge/StreamWebRTC-11.01%20MB-blue"/>
</p>
<p align="center">
Expand Down
4 changes: 4 additions & 0 deletions Sources/StreamVideo/CallState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ public class CallState: ObservableObject {
break
case .typeCallUserFeedbackSubmittedEvent:
break
case .typeCallModerationBlurEvent:
break
case .typeCallModerationWarningEvent:
break
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation

extension SystemEnvironment {
/// A Stream Video version.
public static let version: String = "1.34.2"
public static let version: String = "1.35.0"
/// The WebRTC version.
public static let webRTCVersion: String = "137.0.42"
public static let webRTCVersion: String = "137.0.43"
}
2 changes: 1 addition & 1 deletion Sources/StreamVideo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.34.2</string>
<string>1.35.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// Copyright Β© 2025 Stream.io Inc. All rights reserved.
//

import Foundation

public final class CallModerationBlurEvent: @unchecked Sendable, Event, Codable, JSONEncodable, Hashable, WSCallEvent {
public var callCid: String
public var createdAt: Date
public var custom: [String: RawJSON]
public var type: String = "call.moderation_blur"
public var userId: String

public init(callCid: String, createdAt: Date, custom: [String: RawJSON], userId: String) {
self.callCid = callCid
self.createdAt = createdAt
self.custom = custom
self.userId = userId
}

public enum CodingKeys: String, CodingKey, CaseIterable {
case callCid = "call_cid"
case createdAt = "created_at"
case custom
case type
case userId = "user_id"
}

public static func == (lhs: CallModerationBlurEvent, rhs: CallModerationBlurEvent) -> Bool {
lhs.callCid == rhs.callCid &&
lhs.createdAt == rhs.createdAt &&
lhs.custom == rhs.custom &&
lhs.type == rhs.type &&
lhs.userId == rhs.userId
}

public func hash(into hasher: inout Hasher) {
hasher.combine(callCid)
hasher.combine(createdAt)
hasher.combine(custom)
hasher.combine(type)
hasher.combine(userId)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//
// Copyright Β© 2025 Stream.io Inc. All rights reserved.
//

import Foundation

public final class CallModerationWarningEvent: @unchecked Sendable, Event, Codable, JSONEncodable, Hashable, WSCallEvent {
public var callCid: String
public var createdAt: Date
public var custom: [String: RawJSON]
public var message: String
public var type: String = "call.moderation_warning"
public var userId: String

public init(callCid: String, createdAt: Date, custom: [String: RawJSON], message: String, userId: String) {
self.callCid = callCid
self.createdAt = createdAt
self.custom = custom
self.message = message
self.userId = userId
}

public enum CodingKeys: String, CodingKey, CaseIterable {
case callCid = "call_cid"
case createdAt = "created_at"
case custom
case message
case type
case userId = "user_id"
}

public static func == (lhs: CallModerationWarningEvent, rhs: CallModerationWarningEvent) -> Bool {
lhs.callCid == rhs.callCid &&
lhs.createdAt == rhs.createdAt &&
lhs.custom == rhs.custom &&
lhs.message == rhs.message &&
lhs.type == rhs.type &&
lhs.userId == rhs.userId
}

public func hash(into hasher: inout Hasher) {
hasher.combine(callCid)
hasher.combine(createdAt)
hasher.combine(custom)
hasher.combine(message)
hasher.combine(type)
hasher.combine(userId)
}
}
20 changes: 20 additions & 0 deletions Sources/StreamVideo/OpenApi/generated/Models/VideoEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public enum VideoEvent: Codable, Hashable {
case typeCallMemberUpdatedEvent(CallMemberUpdatedEvent)
case typeCallMemberUpdatedPermissionEvent(CallMemberUpdatedPermissionEvent)
case typeCallMissedEvent(CallMissedEvent)
case typeCallModerationBlurEvent(CallModerationBlurEvent)
case typeCallModerationWarningEvent(CallModerationWarningEvent)
case typeCallNotificationEvent(CallNotificationEvent)
case typePermissionRequestEvent(PermissionRequestEvent)
case typeUpdatedCallPermissionsEvent(UpdatedCallPermissionsEvent)
Expand Down Expand Up @@ -120,6 +122,10 @@ public enum VideoEvent: Codable, Hashable {
return value.type
case let .typeCallMissedEvent(value):
return value.type
case let .typeCallModerationBlurEvent(value):
return value.type
case let .typeCallModerationWarningEvent(value):
return value.type
case let .typeCallNotificationEvent(value):
return value.type
case let .typePermissionRequestEvent(value):
Expand Down Expand Up @@ -237,6 +243,10 @@ public enum VideoEvent: Codable, Hashable {
return value
case let .typeCallMissedEvent(value):
return value
case let .typeCallModerationBlurEvent(value):
return value
case let .typeCallModerationWarningEvent(value):
return value
case let .typeCallNotificationEvent(value):
return value
case let .typePermissionRequestEvent(value):
Expand Down Expand Up @@ -355,6 +365,10 @@ public enum VideoEvent: Codable, Hashable {
try container.encode(value)
case let .typeCallMissedEvent(value):
try container.encode(value)
case let .typeCallModerationBlurEvent(value):
try container.encode(value)
case let .typeCallModerationWarningEvent(value):
try container.encode(value)
case let .typeCallNotificationEvent(value):
try container.encode(value)
case let .typePermissionRequestEvent(value):
Expand Down Expand Up @@ -497,6 +511,12 @@ public enum VideoEvent: Codable, Hashable {
} else if dto.type == "call.missed" {
let value = try container.decode(CallMissedEvent.self)
self = .typeCallMissedEvent(value)
} else if dto.type == "call.moderation_blur" {
let value = try container.decode(CallModerationBlurEvent.self)
self = .typeCallModerationBlurEvent(value)
} else if dto.type == "call.moderation_warning" {
let value = try container.decode(CallModerationWarningEvent.self)
self = .typeCallModerationWarningEvent(value)
} else if dto.type == "call.notification" {
let value = try container.decode(CallNotificationEvent.self)
self = .typeCallNotificationEvent(value)
Expand Down
1 change: 1 addition & 0 deletions Sources/StreamVideoSwiftUI/CallContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public struct CallContainer<Factory: ViewFactory>: View {
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.toastView(toast: $viewModel.toast)
.moderationWarning(call: viewModel.call)
.overlay(overlayView)
.onReceive(viewModel.$callingState) { _ in
if viewModel.callingState == .idle || viewModel.callingState == .inCall {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//
// Copyright Β© 2025 Stream.io Inc. All rights reserved.
//

import Foundation
import StreamVideo
import SwiftUI

/// A view modifier that blurs a participant when moderation blur toggles.
struct ModerationBlurViewModifier: ViewModifier {

var call: Call?
var participant: CallParticipant
var blurRadius: Float

@State var isBlurred: Bool = false

func body(content: Content) -> some View {
Group {
if isBlurred {
content
.blur(radius: .init(blurRadius))
} else {
content
}
}
.onReceive(
call?
.eventPublisher(for: CallModerationBlurEvent.self)
.filter { $0.userId == participant.userId }
.map { _ in !isBlurred }
.removeDuplicates()
.receive(on: DispatchQueue.main)
) { isBlurred = $0 }
}
}

extension View {

/// Applies a moderation blur effect that responds to moderation events.
@ViewBuilder
public func moderationBlur(
call: Call?,
participant: CallParticipant,
blurRadius: Float = 30
) -> some View {
modifier(
ModerationBlurViewModifier(
call: call,
participant: participant,
blurRadius: blurRadius
)
)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//
// Copyright Β© 2025 Stream.io Inc. All rights reserved.
//

import Foundation
import StreamVideo
import SwiftUI

/// A view modifier that shows a toast when moderation warnings arrive.
struct ModerationWarningViewModifier: ViewModifier {

var call: Call?
var placement: ToastPlacement
var duration: TimeInterval

@State var toast: Toast?

func body(content: Content) -> some View {
content
.toastView(toast: $toast)
.onReceive(
call?
.eventPublisher(for: CallModerationWarningEvent.self)
.map {
Toast(
style: .warning,
message: $0.message,
placement: placement,
duration: duration
)
}
.receive(on: DispatchQueue.main)
) { toast = $0 }
}
}

extension View {

/// Presents a moderation warning toast driven by moderation events.
@ViewBuilder
public func moderationWarning(
call: Call?,
placement: ToastPlacement = .top,
duration: TimeInterval = 2.5
) -> some View {
modifier(
ModerationWarningViewModifier(
call: call,
placement: placement,
duration: duration
)
)
}
}
2 changes: 1 addition & 1 deletion Sources/StreamVideoSwiftUI/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.34.2</string>
<string>1.35.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
1 change: 1 addition & 0 deletions Sources/StreamVideoSwiftUI/ViewFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ extension ViewFactory {
customData: customData,
call: call
)
.moderationBlur(call: call, participant: participant)
}

public func makeVideoCallParticipantModifier(
Expand Down
2 changes: 1 addition & 1 deletion Sources/StreamVideoUIKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.34.2</string>
<string>1.35.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
4 changes: 2 additions & 2 deletions StreamVideo-XCFramework.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'StreamVideo-XCFramework'
spec.version = '1.34.2'
spec.version = '1.35.0'
spec.summary = 'StreamVideo iOS Video Client'
spec.description = 'StreamVideo is the official Swift client for Stream Video, a service for building video applications.'

Expand All @@ -24,7 +24,7 @@ Pod::Spec.new do |spec|

spec.prepare_command = <<-CMD
mkdir -p Frameworks/
curl -sL "https://github.com/GetStream/stream-video-swift-webrtc/releases/download/137.0.42/StreamWebRTC.xcframework.zip" -o Frameworks/StreamWebRTC.zip
curl -sL "https://github.com/GetStream/stream-video-swift-webrtc/releases/download/137.0.43/StreamWebRTC.xcframework.zip" -o Frameworks/StreamWebRTC.zip
unzip -o Frameworks/StreamWebRTC.zip -d Frameworks/
rm Frameworks/StreamWebRTC.zip
CMD
Expand Down
Loading
Loading