Open gewill opened 1 year ago
Here is an example, how set CodeViewer height:
CodeViewer
CodeViewer(content: .constant(code), mode: CodeWebView.Mode(rawValue: configuration.language ?? "") ?? .text, darkTheme: .tomorrow_night_eighties, lightTheme: .tomorrow, isReadOnly: true, fontSize: 14, lineHeight: 1.3) .frame(height: CGFloat(code.components(separatedBy: .newlines).count) * 14 * 1.3)
What's this PR do?
Here is an example, how set
CodeViewer
height: