mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
a2ed8633cc
Избавляюсь от условной компиляции INTERNAL_BUILD, потому что непонятно, как этим пользоваться на клиентах в условиях библиотеки.
18 lines
481 B
Swift
18 lines
481 B
Swift
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
|
|
}
|
|
}
|