Instance Method
switchToLayer(withId:associatedMasterId:in:) switchToLayerWithId:associatedMasterId:inRange: switchToLayerWithId_associatedMasterId_inRange_
Switches to the layer with the given layer id for the given range of characters as in the original string.
Declaration
func switchToLayer(withId layerId: String, associatedMasterId: String?, in range: NSRange)Declaration
- (void) switchToLayerWithId:(NSString *) layerId associatedMasterId:(NSString *) associatedMasterId inRange:(NSRange) range;Declaration
switchToLayerWithId_associatedMasterId_inRange_(layerId: str, associatedMasterId: str, range: NSRange)Parameters
layerIdThe layer to switch to.
associatedMasterIdIf this argument is non-nil and the master id matches the id of the currently active master, the function will remove all layer id attributes from the text in the given range instead of setting new layer id attributes.
rangeThe range in which to switch layers. The function switches no layers if the range extends past the text storage.