IntValueConvertible

public protocol IntValueConvertible

This protocol specifies that the types using it should be able to convert their forms into an Int format.

  • Returns Int value or nil if conversion isn’t possible.

    Declaration

    Swift

    var intValue: Int? { get }
  • Returns Int value or 0 if conversion isn’t possible.

    Declaration

    Swift

    var intValueOrDefault: Int { get }