Files
Pulse/Sources/PulseUI/Features/Console/ConsoleView.swift
2024-08-04 14:29:43 -04:00

27 lines
815 B
Swift

// The MIT License (MIT)
//
// Copyright (c) 2020-2024 Alexander Grebenyuk (github.com/kean).
import SwiftUI
import CoreData
import Pulse
import Combine
extension ConsoleView {
/// Initializes the console view.
///
/// - parameters:
/// - store: The store to display. By default, `LoggerStore/shared`.
/// - mode: The initial console mode. By default, ``ConsoleMode/all``. If you change
/// the mode to ``ConsoleMode/network``, the console will display the
/// network messages up on appearance.
/// - delegate: The delegate that allows you to customize multiple aspects
/// of the console view.
public init(
store: LoggerStore = .shared,
mode: ConsoleMode = .all
) {
self.init(environment: .init(store: store, mode: mode))
}
}