mirror of
https://github.com/kean/Pulse.git
synced 2026-05-30 21:07:33 +00:00
34 lines
908 B
Swift
34 lines
908 B
Swift
// The MIT License (MIT)
|
|
//
|
|
// Copyright (c) 2020-2024 Alexander Grebenyuk (github.com/kean).
|
|
|
|
import SwiftUI
|
|
import Pulse
|
|
import CoreData
|
|
|
|
struct Components {
|
|
#if os(iOS) || os(macOS) || os(visionOS)
|
|
@available(iOS 15, macOS 13, visionOS 1, *)
|
|
static func makeSessionPicker(selection: Binding<Set<UUID>>) -> some View {
|
|
SessionPickerView(selection: selection)
|
|
}
|
|
#endif
|
|
|
|
static func makeRichTextView(string: NSAttributedString) -> some View {
|
|
RichTextView(viewModel: .init(string: string))
|
|
}
|
|
|
|
@available(iOS 15, macOS 13, visionOS 1, *)
|
|
static func makeConsoleEntityCell(entity: NSManagedObject) -> some View {
|
|
ConsoleEntityCell(entity: entity)
|
|
}
|
|
|
|
static func makePinView(for task: NetworkTaskEntity) -> some View {
|
|
EmptyView()
|
|
}
|
|
|
|
static func makePinView(for message: LoggerMessageEntity) -> some View {
|
|
EmptyView()
|
|
}
|
|
}
|