Created
September 26, 2023 11:18
-
-
Save amosgyamfi/45005cc1c1672b41b1f6cacba5851df7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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