|
|
@ -6,6 +6,7 @@ struct DetailsView: View {
|
|
|
|
@Binding var isModalPresented: Bool
|
|
|
|
@Binding var isModalPresented: Bool
|
|
|
|
@Binding var isModalParticipated: Bool
|
|
|
|
@Binding var isModalParticipated: Bool
|
|
|
|
@StateObject private var viewModel: DetailsViewModel
|
|
|
|
@StateObject private var viewModel: DetailsViewModel
|
|
|
|
|
|
|
|
@State private var isLoading = true
|
|
|
|
|
|
|
|
|
|
|
|
var isFinished: Bool {
|
|
|
|
var isFinished: Bool {
|
|
|
|
viewModel.betDetail?.wonParticipation == nil ? false : true
|
|
|
|
viewModel.betDetail?.wonParticipation == nil ? false : true
|
|
|
@ -59,7 +60,7 @@ struct DetailsView: View {
|
|
|
|
.background(StatusValues.1)
|
|
|
|
.background(StatusValues.1)
|
|
|
|
if viewModel.betDetail != nil{
|
|
|
|
if viewModel.betDetail != nil{
|
|
|
|
ScrollView {
|
|
|
|
ScrollView {
|
|
|
|
VStack(alignment: .leading, spacing: 5) {
|
|
|
|
VStack(alignment: .leading, spacing: 0) {
|
|
|
|
HStack(spacing: 3) {
|
|
|
|
HStack(spacing: 3) {
|
|
|
|
Spacer()
|
|
|
|
Spacer()
|
|
|
|
Text("bet_proposed_by_format")
|
|
|
|
Text("bet_proposed_by_format")
|
|
|
@ -132,6 +133,7 @@ struct DetailsView: View {
|
|
|
|
Spacer()
|
|
|
|
Spacer()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.padding([.trailing,.leading], 15)
|
|
|
|
.padding([.trailing,.leading], 15)
|
|
|
|
|
|
|
|
.padding(.bottom, 100)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.frame(maxWidth: .infinity, maxHeight: (geometry.size.height + geometry.safeAreaInsets.bottom) - 50)
|
|
|
|
.frame(maxWidth: .infinity, maxHeight: (geometry.size.height + geometry.safeAreaInsets.bottom) - 50)
|
|
|
|