mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
25 lines
564 B
Swift
25 lines
564 B
Swift
#if os(iOS)
|
|
import UIKit
|
|
#elseif os(macOS)
|
|
import AppKit
|
|
#endif
|
|
|
|
import BasePublic
|
|
import LayoutKit
|
|
|
|
public struct DebugParams {
|
|
public let isDebugInfoEnabled: Bool
|
|
public let showDebugInfo: (ViewType) -> Void
|
|
public let errorCounterInsets: EdgeInsets
|
|
|
|
public init(
|
|
isDebugInfoEnabled: Bool = false,
|
|
showDebugInfo: @escaping (ViewType) -> Void = { _ in },
|
|
errorCounterInsets: EdgeInsets = .zero
|
|
) {
|
|
self.isDebugInfoEnabled = isDebugInfoEnabled
|
|
self.showDebugInfo = showDebugInfo
|
|
self.errorCounterInsets = errorCounterInsets
|
|
}
|
|
}
|