DebugView
struct DebugView: View
SwiftUI View
for the debug window
-
The observable state of the application
Declaration
Swift
private var appState
-
The currently selected tab
Declaration
Swift
private var tab: DebugMessage = .log
-
The source of the song
Declaration
Swift
private var content: [(line: Int, source: Song.Section.Line)] = []
-
The currently selected line
Declaration
Swift
private var selectedLine: Int?
-
All parsed log messages
Declaration
Swift
private var osLogMessages: [LogMessage] = []
-
Remember the last fetched time
Declaration
Swift
private var lastFetchedLogDate = Calendar.current.date(byAdding: .year, value: -1000, to: Date()) ?? Date()
-
The body of the
View
Declaration
Swift
var body: some View
-
The source tab of the
View
Declaration
Swift
var source: some View
-
The json tab of the
View
Declaration
Swift
var json: some View
-
The log tab of the
View
Declaration
Swift
var log: some View
-
Parse a line in the log
Declaration
Swift
private func parseLine(_ line: LogMessage) -> LogMessage
Parameters
line
The line to parse
Return Value
The parsed line