Classes

The following classes are available globally.

  • TweakList is the container of TweakSection.

    A list is a vertically scroll list in the UI. Each list is constructed by several sections.

    You don’t use TweakList directly most of the time, it is usually used to constructed the TweakContext object.

    See more

    Declaration

    Swift

    public final class TweakList
    extension TweakList: TweakBuildable
    extension TweakList: 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.

    See more

    Declaration

    Swift

    public final class TweakSection
    extension TweakSection: TweakBuildable
    extension TweakSection: CustomDebugStringConvertible
  • The context in which tweaks live.

    A TweakContext object provides a facade to interact with tweaks, like showing tweaks and import tweaks.

    You can create as many TweakContext objects as you like. But one context is sufficient in most cases.

    See more

    Declaration

    Swift

    @dynamicMemberLookup
    public final class TweakContext
    extension TweakContext: CustomDebugStringConvertible

NotifyToken

  • A type acts as the observer of the change of a tweak value.

    TweaKit strongly holds a token object until you cancel the observation.

    See more

    Declaration

    Swift

    public final class NotifyToken
    extension NotifyToken: Hashable
    extension NotifyToken: CustomDebugStringConvertible

Predefined TweakTradeDestination

Predefined TweakTradeSource