TweakSection
public final class TweakSection
extension TweakSection: TweakBuildable
extension TweakSection: CustomDebugStringConvertible
TweakSection
is the container of tweaks.
A section is a “card” in the list UI. Each section is constructed by several AnyTweak
objects.
You don’t use TweakSection directly most of the time, it is usually used to constructed the TweakList
object.
-
The name of the section.
name
is also the id of the section which means there are no two sections that have the same name in one list.Declaration
Swift
public let name: String
-
Creates and initializes a tweak section with the given name and the tweaks.
The tweaks of the sections are sorted by alphabetic order and tweaks with duplicated names are filtered.
Declaration
Swift
public init(_ name: String, @AnyTweakBuilder _ tweaks: () -> [AnyTweak])
Parameters
name
The name of the section.
tweaks
A builder that creates the tweaks of the section.
-
Undocumented
Declaration
Swift
public var constrainKey: String { get }
-
Undocumented
Declaration
Swift
public var hasBuilt: Bool { get }
-
Declaration
Swift
public var debugDescription: String { get }