Scalar

A number SwiftUI decides. rect.width.times(0.5).plus(8) is rect.width 0.5 + 8 in Swift. Comparisons give a Scalar of 1 or 0, for select.

Declaration

React
import { Scalar } from 'swiftui-react-native';

class Scalar

Members

  • $e: Expression
  • .plus(other: ScalarLike): Scalar
  • .minus(other: ScalarLike): Scalar
  • .times(other: ScalarLike): Scalar
  • .dividedBy(other: ScalarLike): Scalar
  • .remainder(other: ScalarLike): Scalar
  • .negated(): Scalar
  • .isLessThan(other: ScalarLike): Scalar
  • .isGreaterThan(other: ScalarLike): Scalar
  • .isEqualTo(other: ScalarLike | string): Scalar
  • .[Symbol.toPrimitive](): never

See also

More in Types.