Fix style
This commit is contained in:
parent
a524cde9b0
commit
4de2d312ab
@ -97,7 +97,7 @@ public protocol ToggleGroupItem: Identifiable where Self.ID: CustomStringConvert
|
||||
|
||||
/// The item's icon.
|
||||
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.
|
||||
var showLabel: Bool { get }
|
||||
|
||||
@ -80,7 +80,7 @@ extension String: @retroactive CodingKey {
|
||||
return type
|
||||
}
|
||||
|
||||
/// Apply the documentation regex.
|
||||
/// Apply the documentation regex.
|
||||
/// - Parameter configuration: The generation configuration.
|
||||
/// - Returns: The documentation with the regex applied.
|
||||
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.
|
||||
func applyExtraContentRegex() throws -> String {
|
||||
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.
|
||||
/// - Returns: The documentation with the regex applied.
|
||||
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.
|
||||
func applyBooleanRegex() throws -> String {
|
||||
var modified = self
|
||||
@ -138,7 +138,7 @@ extension String: @retroactive CodingKey {
|
||||
return modified
|
||||
}
|
||||
|
||||
/// Remove broken HTML tags.
|
||||
/// Remove broken HTML tags.
|
||||
/// - Returns: The documentation with the regex applied.
|
||||
func applyHTMLRegex() throws -> String {
|
||||
let picture = try Regex("<picture>.*?</picture>")
|
||||
|
||||
@ -27,7 +27,7 @@ struct Property: Decodable {
|
||||
/// Whether the property is deprecated.
|
||||
var deprecated: Bool?
|
||||
|
||||
/// Whether the property is itself a view.
|
||||
/// Whether the property is itself a view.
|
||||
var isView: Bool {
|
||||
(self.type?.isWidget ?? false) || (self.type?.isMenu ?? false)
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ struct WidgetConfiguration {
|
||||
var lastProperties: [String] = []
|
||||
/// Manually add setters which do not follow common practices.
|
||||
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
|
||||
|
||||
/// The configuration for a binding.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user