metatext/Views/SwiftUI/View Repesentables/ReportStatusView.swift
Justin Mazzocchi ff8fd63e50
Organize views
2021-01-28 22:50:58 -08:00

27 lines
710 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import ViewModels
struct ReportStatusView: UIViewRepresentable {
private let configuration: StatusContentConfiguration
init(viewModel: StatusViewModel) {
configuration = StatusContentConfiguration(viewModel: viewModel)
}
func makeUIView(context: Context) -> StatusView {
let view = StatusView(configuration: configuration)
view.alpha = 0.5
view.buttonsStackView.isHidden = true
view.translatesAutoresizingMaskIntoConstraints = false
view.isUserInteractionEnabled = false
return view
}
func updateUIView(_ uiView: StatusView, context: Context) {
}
}