metatext/Views/SwiftUI/View Repesentables/ReportStatusView.swift

29 lines
786 B
Swift
Raw Normal View History

2020-11-30 02:54:11 +00:00
// 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
2021-02-15 22:14:55 +00:00
view.accessibilityLabel = view.accessibilityAttributedLabel?.string
2020-11-30 02:54:11 +00:00
return view
}
func updateUIView(_ uiView: StatusView, context: Context) {
}
}