From 4a3c616620cdf3d1dd3d01093f67e0c6b05a8afc Mon Sep 17 00:00:00 2001 From: Ilias Pavlidakis Date: Thu, 25 Jan 2024 17:48:19 +0200 Subject: [PATCH] Update docs --- .../iOS/04-ui-components/07-call/02-outgoing-call.mdx | 7 ++++--- .../08-participants/03-call-participants-info-menu.mdx | 9 +++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/docusaurus/docs/iOS/04-ui-components/07-call/02-outgoing-call.mdx b/docusaurus/docs/iOS/04-ui-components/07-call/02-outgoing-call.mdx index 37056e7b7..80676e41d 100644 --- a/docusaurus/docs/iOS/04-ui-components/07-call/02-outgoing-call.mdx +++ b/docusaurus/docs/iOS/04-ui-components/07-call/02-outgoing-call.mdx @@ -4,18 +4,19 @@ The `OutgoingCallView` lets you easily build UI when you're calling or ringing o ## Usage -In order to create the `OutgoingCallView`, you need to instantiate it with the `outgoingCallMembers` and the `callControls`. +In order to create the `OutgoingCallView`, you need to instantiate it with the `outgoingCallMembers`, `callTopView` and the `callControls`. ```swift public var body: some View { OutgoingCallView( outgoingCallMembers: outgoingCallMembers, + callTopView: callTopView, callControls: callControls ) } ``` -The `callControls` parameter is a SwiftUI view that is showing the actions you can do during a call. +The `callTopView` and `callControls` parameter is a SwiftUI view that is showing the actions you can do during a call. If you are using our `CallContainer` to add calling support to your views, this view is automatically shown when the `callingState` in the `CallViewModel` is `.outgoing`. @@ -24,7 +25,7 @@ If you want to customize (or completely replace) the `OutgoingCallView`, you sho ```swift public func makeOutgoingCallView(viewModel: CallViewModel) -> some View { CustomOutgoingCallView(viewModel: viewModel) -} +} ``` ## Sounds diff --git a/docusaurus/docs/iOS/04-ui-components/08-participants/03-call-participants-info-menu.mdx b/docusaurus/docs/iOS/04-ui-components/08-participants/03-call-participants-info-menu.mdx index e283d6b7b..5b720a93d 100644 --- a/docusaurus/docs/iOS/04-ui-components/08-participants/03-call-participants-info-menu.mdx +++ b/docusaurus/docs/iOS/04-ui-components/08-participants/03-call-participants-info-menu.mdx @@ -11,23 +11,20 @@ Let's see how to use the component. If you want to use the componant as a standalone, you can create it like this: ```swift -let view = CallParticipantsInfoView(callViewModel: viewModel, availableFrame: availableFrame) +let view = CallParticipantsInfoView(callViewModel: viewModel) ``` The required parameters for this method are: - `callViewModel` - the call view model used for the call. -- `availableFrame` - the available frame for the view. Additionally, if you are using our `ViewFactory` and the default view, you can customize or swap this view with your own implementation. In order to do that, you should implement the method `makeParticipantsListView`: ```swift func makeParticipantsListView( - viewModel: CallViewModel, - availableFrame: CGRect + viewModel: CallViewModel ) -> some View { CustomCallParticipantsInfoView( - callViewModel: viewModel, - availableFrame: availableFrame + callViewModel: viewModel, ) ```