What is "'x' is a 'y' and cannot be used as an expression" in swift?
Example:
struct Example {}
let test = Example
The error happens when you try to use a type (like a class, struct, or enum) without instantiating it or referring to its type.
Solution:
let test = Example()