mirror of
https://github.com/insidegui/VirtualBuddy.git
synced 2026-12-05 00:29:26 +08:00
34 lines
792 B
Swift
34 lines
792 B
Swift
//
|
|
// InstallationConsole.swift
|
|
// VirtualUI
|
|
//
|
|
// Created by Guilherme Rambo on 20/07/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
import VirtualCore
|
|
|
|
struct InstallationConsole: View {
|
|
|
|
var overridePredicate: LogStreamer.Predicate? = nil
|
|
|
|
private var predicate: LogStreamer.Predicate {
|
|
overridePredicate ?? .process("com.apple.Virtualization.Installation")
|
|
}
|
|
|
|
var body: some View {
|
|
LogConsole(predicate: predicate)
|
|
.frame(minWidth: 200, maxWidth: .infinity, minHeight: 100, maxHeight: 400)
|
|
.controlGroup(level: .secondary)
|
|
}
|
|
|
|
}
|
|
|
|
#if DEBUG
|
|
#Preview {
|
|
InstallationConsole(overridePredicate: .process("Xcode"))
|
|
.padding()
|
|
.frame(minWidth: 200, maxWidth: .infinity, minHeight: 200, maxHeight: .infinity, alignment: .bottom)
|
|
}
|
|
#endif
|