Files

22 lines
611 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// The MIT License (MIT)
//
// Copyright (c) 20202023 Alexander Grebenyuk (github.com/kean).
import SwiftUI
import CoreData
import Pulse
import Combine
extension ConsoleView {
public init(store: LoggerStore = .shared, mode: ConsoleMode = .all) {
self.init(environment: .init(store: store, mode: mode))
}
}
extension ConsoleView {
@available(*, deprecated, message: "Please use the default initializer and pass the mode instead")
public static func network(store: LoggerStore = .shared) -> ConsoleView {
ConsoleView(environment: .init(store: store, mode: .network))
}
}