TweakViewDataType

public enum TweakViewDataType

The data types that are currently supported for SwiftTweaks. While Tweak is generic, we have to build UI for editing each kind of

  • hence the need for a protocol to restrict what can be tweaked. Of course, we can add new TweakViewDataTypes over time, too!
  • TweakableType supports the boolean type

    Declaration

    Swift

    case boolean
  • TweakableType supports the integer type

    Declaration

    Swift

    case integer
  • TweakableType supports the cgFloat type

    Declaration

    Swift

    case cgFloat
  • TweakableType supports the double type

    Declaration

    Swift

    case double
  • TweakableType supports the string type

    Declaration

    Swift

    case string