Structures

The following structures are available globally.

  • A type-erasure around Tweak for A/B Testing.

    See more

    Declaration

    Swift

    public struct AnyTweak : TweakType
    extension AnyTweak: Hashable
    extension AnyTweak: TweakClusterType
  • Tweaks let you adjust things on the fly. Because each T needs a UI component, we have to restrict what T can be - hence T: TweakableType. If T: SignedNumberType, you can declare a min / max for a Tweak.

    See more

    Declaration

    Swift

    public struct Tweak<T> where T : TweakableType
    extension Tweak: Hashable
    extension Tweak: TweakClusterType
  • The MixpanelTweaks struct that needs to be extended to define new Tweaks for A/B testing

    See more

    Declaration

    Swift

    public struct MixpanelTweaks : TweakLibraryType