ExpressibleByLiteral
Literals
extension Variable: ExpressibleByBooleanLiteral { ... }
extension Variable: ExpressibleByIntegerLiteral { ... }
extension Variable: ExpressibleByFloatLiteral { ... }
extension Variable: ExpressibleByStringLiteral { ... }
extension Variable: ExpressibleByArrayLiteral { ... }
extension Variable: ExpressibleByDictionaryLiteral { ... }
Example
let text: Variable = "Hello, World!"
XCTAssertEqual(text, "Hello, World!")