Skip to content

Instantly share code, notes, and snippets.

@amosgyamfi
Created September 26, 2023 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amosgyamfi/45005cc1c1672b41b1f6cacba5851df7 to your computer and use it in GitHub Desktop.
Save amosgyamfi/45005cc1c1672b41b1f6cacba5851df7 to your computer and use it in GitHub Desktop.
//
// AroundMeetingTopView.swift
// BasicAdvancedTheming
//
// Created by amos.gyamfi@getstream.io on 11.9.2023.
//
import SwiftUI
import StreamVideo
import StreamVideoSwiftUI
struct AroundMeetingTopView: View {
@ObservedObject var viewModel: CallViewModel
var participants: [CallParticipant]
var body: some View {
HStack {
Button {
} label: {
Image(systemName: "chevron.")
}
.font(.title2)
.bold()
Text("All Hands")
Spacer()
HStack {
Image(systemName: "person.3")
Text("\(viewModel.participants.count)")
}
Spacer()
Button {
//HangUpIconView(viewModel: viewModel)
viewModel.hangUp()
} label: {
Text("Leave")
.padding(EdgeInsets(top: 12, leading: 24, bottom: 12, trailing: 24))
.foregroundStyle(.white)
.background(Capsule().foregroundStyle(.red))
}
.buttonStyle(.plain)
}
.padding(EdgeInsets(top: 64, leading: 16, bottom: 24, trailing: 16))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment