mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-24 06:20:29 +00:00
28 lines
786 B
Swift
28 lines
786 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
|
|
view.accessibilityLabel = view.accessibilityAttributedLabel?.string
|
|
|
|
return view
|
|
}
|
|
|
|
func updateUIView(_ uiView: StatusView, context: Context) {
|
|
|
|
}
|
|
}
|