Skip to content

Commit

Permalink
Merge pull request #5 from AgoraIO-Community/vision-ready
Browse files Browse the repository at this point in the history
Vision Ready
  • Loading branch information
maxxfrazer authored Dec 12, 2023
2 parents 708548a + ef3a285 commit 8adbd33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# SwiftUIRtc

<p align="center">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FAgoraIO-Community%2FSwiftUIRtc%2Fbadge%3Ftype%3Dswift-versions" />
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FAgoraIO-Community%2FSwiftUIRtc%2Fbadge%3Ftype%3Dplatforms" /><br/>
<a href="https://agoraio-community.github.io/SwiftUIRtc/"><img src="https://github.com/AgoraIO-Community/SwiftUIRtc/actions/workflows/deploy_docs.yml/badge.svg"/></a>
<img src="https://github.com/AgoraIO-Community/SwiftUIRtc/actions/workflows/swiftbuild.yml/badge.svg"/>
</p>
Expand Down
6 changes: 3 additions & 3 deletions Sources/SwiftUIRtc/AgoraVideoCanvasView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import SwiftUI
#if os(iOS)
#if os(iOS) || os(visionOS)
public typealias ViewClassAlias = UIView
public typealias ViewRepresentable = UIViewRepresentable
#elseif os(macOS)
Expand Down Expand Up @@ -217,7 +217,7 @@ public struct AgoraVideoCanvasView: ViewRepresentable {
public func makeNSView(context: Context) -> NSView {
setupCanvasView()
}
#elseif os(iOS)
#elseif os(iOS) || os(visionOS)
/// Creates and configures a `UIView` for the view. This UIView will be the view the video is rendered onto.
///
/// - Parameter context: The `UIViewRepresentable` context.
Expand Down Expand Up @@ -257,7 +257,7 @@ public struct AgoraVideoCanvasView: ViewRepresentable {
}

/// Updates the Canvas view.
#if os(iOS)
#if os(iOS) || os(visionOS)
/// 🔄 Updates the `UIView` for the view.
public func updateUIView(_ uiView: UIView, context: Context) {
self.updateCanvasValues()
Expand Down

0 comments on commit 8adbd33

Please sign in to comment.