From ea0b2781a3ae85966228c9693e77f0093677108f Mon Sep 17 00:00:00 2001 From: iamnijat Date: Tue, 28 Feb 2023 09:47:46 +0400 Subject: [PATCH] Made corrections to CodeArtSyntaxView hierarchy --- Sources/CodeArtSyntax/CodeArtSyntaxView.swift | 2 +- Sources/CodeArtSyntax/Utils/SyntaxTheme.swift | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/CodeArtSyntax/CodeArtSyntaxView.swift b/Sources/CodeArtSyntax/CodeArtSyntaxView.swift index 0abb485..118791d 100644 --- a/Sources/CodeArtSyntax/CodeArtSyntaxView.swift +++ b/Sources/CodeArtSyntax/CodeArtSyntaxView.swift @@ -41,7 +41,7 @@ public struct CodeArtSyntaxView: View { } -private struct CodeLinesView: View { + private struct CodeLinesView: View { let number: String let syntaxTheme: SyntaxTheme diff --git a/Sources/CodeArtSyntax/Utils/SyntaxTheme.swift b/Sources/CodeArtSyntax/Utils/SyntaxTheme.swift index b647aec..ce4834e 100644 --- a/Sources/CodeArtSyntax/Utils/SyntaxTheme.swift +++ b/Sources/CodeArtSyntax/Utils/SyntaxTheme.swift @@ -1,6 +1,7 @@ import UIKit public struct SyntaxTheme { + let linesCountColor: UIColor let backgroundColor: UIColor let baseColor: UIColor @@ -13,8 +14,6 @@ public struct SyntaxTheme { let classStyle: TextStyle let constantStyle: TextStyle - - public static func vsCodeDark() -> SyntaxTheme { return SyntaxTheme( linesCountColor: UIColor(hexString: "#ffffff", alpha: 0.7),