Float

extension Float: SettingSerializable
  • Declaration

    Swift

    public static func get(key: String, userDefaults: UserDefaults) -> Float?
  • Declaration

    Swift

    public static func set(key: String, value: Float, userDefaults: UserDefaults)
  • Restrict a value to be between two others

    Declaration

    Swift

    public func clamp(min minValue: `Self`, max maxValue: `Self`) -> Float

    Parameters

    minValue

    the lowest acceptable value

    maxValue

    the highest acceptable value

    Return Value

    clamped value