Created
September 26, 2023 22:17
-
-
Save amosgyamfi/6c87831d3165e13edf87f5dd299ade15 to your computer and use it in GitHub Desktop.
This file contains 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