Skip to content

Instantly share code, notes, and snippets.


Aleksandr Glushchenko sparklone

View GitHub Profile
sparklone / DebugView.swift
Created Jul 12, 2020
Helper to debug SwiftUI view lifecycle and redraw
View DebugView.swift
import SwiftUI
public struct DebugView<MainView: View>: View {
private let view: MainView
private let logType: LogType
private enum LogType {
case onlyDescription(String)
case descriptionAndDumpView(String)
case dumpView
You can’t perform that action at this time.