subscript(_:)
Accesses the value associated with a given key.
Declaration
@objc override dynamic subscript(key: Any) -> Any? { get set }Parameters
- key:
The key whose value you want to retrieve.
Return Value
The value associated with the key, or nil if no value is associated with the key.