Scenarios Documentation Beta

Class Scenario​Kind

public class ScenarioKind: NSObject, RawRepresentable, ExpressibleByStringLiteral, ExpressibleByStringInterpolation, CaseIterable

Represents a unique identifier of the set of scenarios.

ScenarioKind ScenarioKind ExpressibleByStringInterpolation ExpressibleByStringInterpolation ScenarioKind->ExpressibleByStringInterpolation CaseIterable CaseIterable ScenarioKind->CaseIterable RawRepresentable RawRepresentable ScenarioKind->RawRepresentable ExpressibleByStringLiteral ExpressibleByStringLiteral ScenarioKind->ExpressibleByStringLiteral NSObject NSObject ScenarioKind->NSObject

Conforms To

CaseIterable
ExpressibleByStringInterpolation
ExpressibleByStringLiteral
NSObject
RawRepresentable

Initializers

init(raw​Value:​)

public required init(rawValue: String)

Creates a new kind with given raw string value.

Parameters

raw​Value String

The raw string value.

init(string​Literal:​)

public required convenience init(stringLiteral value: String)

Creates a new kind with given raw string value.

Parameters

value String

The raw string value.

init(raw​Value:​name​For​Sorting:​)

public convenience init(rawValue: String, nameForSorting: String? = nil)

Properties

feature

let feature: ScenarioKind = "Feature"

raw​Value

var rawValue: String

The raw string value.

name

var name: String

A string representing the name of this kind.

name​For​Sorting

var nameForSorting: String

description

var description: String

A textual representation of this instance.

all​Cases

var allCases: [ScenarioKind]