ScreenKey
public struct ScreenKey : Hashable, CustomStringConvertible
А screen key that can be used to search for a container in the container hierarchy.
Usually you don’t need to create an instance of this type.
It can be obtained from the key
property of the Screen
protocol.
See also
Screen
.
See also
ScreenKeyedContainer
.
-
Screen name.
Declaration
Swift
public let name: String
-
Screen traits that are used to distinguish screens with the same name.
Declaration
Swift
public let traits: Set<AnyHashable>
-
Declaration
Swift
public var description: String { get }
-
Creates a screen key.
Declaration
Swift
public init(name: String, traits: Set<AnyHashable> = [])
Parameters
name
Screen name.
traits
Screen traits that are used to distinguish screens with the same name.