MutatorIfElse
@objcMembers public class MutatorIfElse: NSObject
A mutator for dynamically adding else-if
and else
statements to an if
block.
-
The target block that will be mutated
Declaration
Swift
public weak var block: Block?
-
The associated layout of the mutator
Declaration
Swift
public weak var layout: MutatorLayout?
-
The number of else-if statements that should be added to the block
Declaration
Swift
public var elseIfCount = 0
-
Flag determining if an else statement should be added to the block
Declaration
Swift
public var elseStatement = false
-
Returns a list of inputs that have been created by this mutator on
self.block
, sorted in ascending order of their index withinself.block.inputs
.Declaration
Swift
public func sortedMutatorInputs() -> [Input]
Return Value
A sorted list of inputs created by this mutator on
self.block
.