Declaration
import { Scalars } from 'swiftui-react-native';
const Scalars: {
abs;
sqrt;
floor;
ceil;
round;
sin;
cos;
tan;
asin;
acos;
atan;
exp;
log;
atan2;
pow;
min;
max;
select(condition: ScalarLike, yes: ScalarLike, no: ScalarLike);
}Members
abssqrtfloorceilroundsincostanasinacosatanexplogatan2powminmax.select( condition: ScalarLike, yes: ScalarLike, no: ScalarLike ): Scalarcondition ? yes : no, for a condition SwiftUI decides.
See also
More in Types.
- ObservableThe JavaScript @Observable class: subclass it, and a component re-renders only when a property it read changes (useObservable, useBindable, useEnvironment).
- ObservableObjectThe JavaScript ObservableObject: subclass it, and any change to its properties re-renders every component observing it (useStateObject, useObservedObject, useEnvironmentObject).
- ScalarA 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.