Fix style
Some checks are pending
Deploy Docs / publish (push) Waiting to run
SwiftLint / SwiftLint (push) Waiting to run

This commit is contained in:
david-swift 2025-11-05 13:04:53 +01:00
parent a524cde9b0
commit 4de2d312ab
4 changed files with 8 additions and 8 deletions

View File

@ -97,7 +97,7 @@ public protocol ToggleGroupItem: Identifiable where Self.ID: CustomStringConvert
/// The item's icon. /// The item's icon.
var icon: Icon? { get } var icon: Icon? { get }
/// Whether to show the label in the UI (the identifier's string conversion). /// Whether to show the label in the UI (the identifier's string conversion).
/// ///
/// Otherwise, it will be used as the tooltip. /// Otherwise, it will be used as the tooltip.
var showLabel: Bool { get } var showLabel: Bool { get }

View File

@ -80,7 +80,7 @@ extension String: @retroactive CodingKey {
return type return type
} }
/// Apply the documentation regex. /// Apply the documentation regex.
/// - Parameter configuration: The generation configuration. /// - Parameter configuration: The generation configuration.
/// - Returns: The documentation with the regex applied. /// - Returns: The documentation with the regex applied.
func applyDocRegex(configuration: GenerationConfiguration) -> String { func applyDocRegex(configuration: GenerationConfiguration) -> String {
@ -99,7 +99,7 @@ extension String: @retroactive CodingKey {
} }
} }
/// Apply the regex to remove additional documentation content. /// Apply the regex to remove additional documentation content.
/// - Returns: The documentation with the regex applied. /// - Returns: The documentation with the regex applied.
func applyExtraContentRegex() throws -> String { func applyExtraContentRegex() throws -> String {
let extraContent = try Regex("##?(.|\\n)*") let extraContent = try Regex("##?(.|\\n)*")
@ -115,7 +115,7 @@ extension String: @retroactive CodingKey {
} }
} }
/// Translate property definitions into Swift references. /// Translate property definitions into Swift references.
/// - Parameter configuration: The generation configuration. /// - Parameter configuration: The generation configuration.
/// - Returns: The documentation with the regex applied. /// - Returns: The documentation with the regex applied.
func applyPropertyRegex(configuration: GenerationConfiguration) throws -> String { func applyPropertyRegex(configuration: GenerationConfiguration) throws -> String {
@ -127,7 +127,7 @@ extension String: @retroactive CodingKey {
} }
} }
/// Translate booleans into inline Markdown code with Swift booleans. /// Translate booleans into inline Markdown code with Swift booleans.
/// - Returns: The documentation with the regex applied. /// - Returns: The documentation with the regex applied.
func applyBooleanRegex() throws -> String { func applyBooleanRegex() throws -> String {
var modified = self var modified = self
@ -138,7 +138,7 @@ extension String: @retroactive CodingKey {
return modified return modified
} }
/// Remove broken HTML tags. /// Remove broken HTML tags.
/// - Returns: The documentation with the regex applied. /// - Returns: The documentation with the regex applied.
func applyHTMLRegex() throws -> String { func applyHTMLRegex() throws -> String {
let picture = try Regex("<picture>.*?</picture>") let picture = try Regex("<picture>.*?</picture>")

View File

@ -27,7 +27,7 @@ struct Property: Decodable {
/// Whether the property is deprecated. /// Whether the property is deprecated.
var deprecated: Bool? var deprecated: Bool?
/// Whether the property is itself a view. /// Whether the property is itself a view.
var isView: Bool { var isView: Bool {
(self.type?.isWidget ?? false) || (self.type?.isMenu ?? false) (self.type?.isWidget ?? false) || (self.type?.isMenu ?? false)
} }

View File

@ -36,7 +36,7 @@ struct WidgetConfiguration {
var lastProperties: [String] = [] var lastProperties: [String] = []
/// Manually add setters which do not follow common practices. /// Manually add setters which do not follow common practices.
var setters: [String] = [] var setters: [String] = []
/// Whether the initializer of the widget should not be public in Swift. /// Whether the initializer of the widget should not be public in Swift.
var internalInitializer = false var internalInitializer = false
/// The configuration for a binding. /// The configuration for a binding.