Functions
The following functions are available globally.
-
Compare 2
NSDecimalNumber
s.Declaration
Swift
public func < (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
Return Value
true
if the left side is lesser than the right side,false
otherwise. -
Compare 2
NSDecimalNumber
s.Declaration
Swift
public func <= (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
Return Value
true
if the left side is lesser than or equal the right side,false
otherwise. -
Compare 2
NSDecimalNumber
s.Declaration
Swift
public func > (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
Return Value
true
if the left side is greater than the right side,false
otherwise. -
Compare 2
NSDecimalNumber
s.Declaration
Swift
public func >= (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
Return Value
true
if the left side is greater than or equal the right side,false
otherwise. -
Multiply 2
NSDecimalNumber
s together.Declaration
Swift
public func * (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber
Return Value
The result of multiplying the left side with the right side.
-
Divide one
NSDecimalNumber
with another.Declaration
Swift
public func / (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber
Return Value
The result of dividing the left side with the right side.
-
Use with
SignalProtocol.observe(context:)
orSignalProducerProtocol.observe(context:)
below to animate all changes made by observers of the signal returned fromobserve(context:)
.Declaration
Swift
public func animatingContext( _ duration: TimeInterval, delay: TimeInterval = 0, options: UIView.AnimationOptions = [], layoutView: UIView? = nil, completion: ((Bool) -> Void)? = nil) -> ((@escaping () -> Void) -> Void)
-
Use with
SignalProtocol.observe(context:)
orSignalProducerProtocol.observe(context:)
below to animate all changes made by observers of the signal returned fromobserve(context:)
.Declaration
Swift
public func transitionContext( with view: UIView, duration: TimeInterval, delay: TimeInterval = 0, options: UIView.AnimationOptions = [], completion: ((Bool) -> Void)? = nil) -> ((@escaping () -> Void) -> Void)
-
Perform a two-way binding between 2 mutable properties.
Declaration
Swift
@discardableResult public func <~> <P1, P2>(property1: P1, property2: P2) -> Disposable where P1 : MutablePropertyProtocol, P2 : MutablePropertyProtocol, P1.Value == P2.Value