mirror of
https://github.com/kean/Pulse.git
synced 2026-05-30 21:07:33 +00:00
27 lines
815 B
Swift
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))
|
|
}
|
|
}
|