Skip to content

Instantly share code, notes, and snippets.

@amosgyamfi
Created September 26, 2023 22:17
Show Gist options
  • Save amosgyamfi/6c87831d3165e13edf87f5dd299ade15 to your computer and use it in GitHub Desktop.
Save amosgyamfi/6c87831d3165e13edf87f5dd299ade15 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